mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-21 13:53:25 +12:00
408a28ccf4
* chore(deps): Bump assent from 0.2.7 to 0.2.8 Bumps [assent](https://github.com/pow-auth/assent) from 0.2.7 to 0.2.8. - [Release notes](https://github.com/pow-auth/assent/releases) - [Changelog](https://github.com/pow-auth/assent/blob/main/CHANGELOG.md) - [Commits](https://github.com/pow-auth/assent/compare/v0.2.7...v0.2.8) --- updated-dependencies: - dependency-name: assent dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore(OAuth2): Reflect `assent` `site` -> `base_url` change. I considered just rewriting it behind the scenes, but I think it's probably better in the long run if we just emit a deprecation. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: James Harton <james@harton.nz>
35 lines
1,019 B
Elixir
35 lines
1,019 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 :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",
|
|
base_url: "https://example.com/",
|
|
authorize_url: "https://example.com/authorize",
|
|
token_url: "https://example.com/oauth/token",
|
|
user_url: "https://example.com/userinfo"
|
|
]
|
|
],
|
|
tokens: [
|
|
signing_secret: "Marty McFly in the past with the Delorean"
|
|
]
|
|
]
|
|
|
|
config :ash_authentication, extra_strategies: [Example.OnlyMartiesAtTheParty]
|