ash_authentication/config/test.exs
James Harton 371a6ad821 improvement(Jwt)!: Use token signing secret into the DSL.
Use the `AshAuthentication.Secret` behaviour, rather than asking the user to explicitly set it in their application environment.

This is a breaking change that will require folks to change their resource config to look up the signing secret.

Closes #79.
Closes #77.
2022-12-12 10:45:28 +13:00

38 lines
970 B
Elixir

import Config
config :ash_authentication, ecto_repos: [Example.Repo], ash_apis: [Example]
config :ash_authentication, Example.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "ash_authentication_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10
config :ash_authentication, Example,
resources: [
registry: Example.Registry
]
config :bcrypt_elixir, :log_rounds, 4
config :ash, :disable_async?, true
config :ash_authentication,
authentication: [
strategies: [
oauth2: [
client_id: "pretend client id",
redirect_uri: "http://localhost:4000/auth",
client_secret: "pretend client secret",
site: "https://example.com/",
authorize_path: "/authorize",
token_path: "/oauth/token",
user_path: "/userinfo"
]
],
tokens: [
signing_secret: "Marty McFly in the past with the Delorean"
]
]