Boruta.Config (Boruta core v0.2.1) View Source

Utilities to access Boruta configuration ad set defaults.

Configuration can be set as following in config.exs (this configuration is the default)

config :boruta, Boruta.Oauth,
  repo: MyApp.Repo,
  expires_in: %{
    access_token: 24 * 3600,
    authorization_code: 60
  },
  token_generator: Boruta.TokenGenerator,
  secret_key_base: System.get_env("SECRET_KEY_BASE"),
  resource_owner: %{
    schema: Boruta.Accounts.User,
    checkpw_method: &Boruta.Accounts.HashSalt.checkpw/2
  },
  adapter: Boruta.EctoAdapter