A library for our Elixir apps to communicate with Banyan.
The Banyan API requires UeberAuth for handling authentication.
config :ueberauth, Ueberauth.Strategy.Auth0.OAuth,
app_baseurl: System.get_env("AUTH0_APP_BASEURL"),
domain: System.get_env("AUTH0_DOMAIN"),
client_id: System.get_env("AUTH0_CLIENT_ID"),
client_secret: System.get_env("AUTH0_CLIENT_SECRET")
It also requires defining an app name (who
or uso
) and a GraphQL endpoint:
config :banyan_api,
graphql_endpoint: System.get_env("BANYAN_GRAPHQL_ENDPOINT"),
app_name: "who"
For developing locally, set an auth token fetch implementation that returns an empty string like so:
# dev.exs
config :banyan_api,
access_token_impl: fn -> {:ok, ""} end