Utilities to access Backplane OAuth configuration ad set defaults.
Backplane OAuth configuration can be set as following in config.exs overriding following default configuration
config :backplane_oauth, Backplane.Oauth,
repo: MyApp.Repo, # mandatory
cache_backend: Backplane.Oauth.Cache,
contexts: [
access_tokens: Backplane.Oauth.Ecto.AccessTokens,
clients: Backplane.Oauth.Ecto.Clients,
codes: Backplane.Oauth.Ecto.Codes,
resource_owners: MyApp.ResourceOwners, # mandatory for user flows
scopes: Backplane.Oauth.Ecto.Scopes
],
max_ttl: [
authorization_code: 60,
access_token: 60 * 60 * 24,
id_token: 60 * 60 * 24,
refresh_token: 60 * 60 * 24 * 30
],
token_generator: Backplane.Oauth.SecureToken,
issuer: "boruta"