# `Backplane.Oauth.Config`
[🔗](https://github.com/gsmlg-opt/backplane/blob/v1.10.77/apps/backplane_oauth/lib/backplane/oauth/config.ex#L1)

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"
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
