-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathdev.exs
More file actions
79 lines (71 loc) · 2.68 KB
/
dev.exs
File metadata and controls
79 lines (71 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# SPDX-FileCopyrightText: 2022 Alembic Pty Ltd
#
# SPDX-License-Identifier: MIT
import Config
config :git_ops,
mix_project: Mix.Project.get!(),
changelog_file: "CHANGELOG.md",
repository_url: "https://github.com/team-alembic/ash_authentication",
manage_mix_version?: true,
manage_readme_version: [
"README.md",
"documentation/tutorials/get-started.md"
],
version_tag_prefix: "v"
config :ash_authentication, DevServer, start?: true, port: 4000
config :ash_authentication, ecto_repos: [Example.Repo], ash_domains: [Example, ExampleMultiTenant]
config :ash_authentication, Example.Repo,
username: "postgres",
password: "postgres",
hostname: System.get_env("DATABASE_HOST", "localhost"),
database: "ash_authentication_dev",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10
config :ash_authentication,
authentication: [
strategies: [
oauth2: [
client_id: System.get_env("OAUTH2_CLIENT_ID"),
redirect_uri: "http://localhost:4000/auth",
client_secret: System.get_env("OAUTH2_CLIENT_SECRET"),
base_url: System.get_env("OAUTH2_SITE"),
authorize_url: "#{System.get_env("OAUTH2_SITE")}/authorize",
token_url: "#{System.get_env("OAUTH2_SITE")}/oauth/token",
user_url: "#{System.get_env("OAUTH2_SITE")}/userinfo",
trusted_audiences: ["01234", "56789"]
],
auth0: [
client_id: System.get_env("OAUTH2_CLIENT_ID"),
redirect_uri: "http://localhost:4000/auth",
client_secret: System.get_env("OAUTH2_CLIENT_SECRET"),
base_url: System.get_env("OAUTH2_SITE")
],
github: [
client_id: System.get_env("GITHUB_CLIENT_ID"),
client_secret: System.get_env("GITHUB_CLIENT_SECRET"),
redirect_uri: "http://localhost:4000/auth"
],
oidc: [
authorize_url: "#{System.get_env("OAUTH2_SITE")}/authorize",
client_id: System.get_env("OAUTH2_CLIENT_ID"),
client_secret: System.get_env("OAUTH2_CLIENT_SECRET"),
redirect_uri: "http://localhost:4000/auth",
base_url: System.get_env("OAUTH2_SITE"),
token_url: "#{System.get_env("OAUTH2_SITE")}/oauth/token",
trusted_audiences: ["01234", "56789"]
],
slack: [
client_id: System.get_env("SLACK_CLIENT_ID"),
client_secret: System.get_env("SLACK_CLIENT_SECRET"),
redirect_uri: System.get_env("SLACK_REDIRECT_URI")
]
],
tokens: [
signing_secret: "Marty McFly in the past with the Delorean"
]
]
# config :ash_authentication, debug_authentication_failures?: true
config :ash_authentication,
extra_strategies: [Example.OnlyMartiesAtTheParty],
suppress_sensitive_field_warnings?: true