2022-10-25 11:23:05 +13:00
|
|
|
import Config
|
|
|
|
|
|
|
|
config :git_ops,
|
|
|
|
mix_project: Mix.Project.get!(),
|
|
|
|
changelog_file: "CHANGELOG.md",
|
|
|
|
repository_url: "https://github.com/team-alembic/ash_authentication_phoenix",
|
|
|
|
manage_mix_version?: true,
|
2023-01-27 03:26:14 +13:00
|
|
|
manage_readme_version: [
|
|
|
|
"README.md",
|
2024-05-10 12:40:45 +12:00
|
|
|
"documentation/tutorials/get-started.md"
|
2023-01-27 03:26:14 +13:00
|
|
|
],
|
2022-10-25 11:23:05 +13:00
|
|
|
version_tag_prefix: "v"
|
|
|
|
|
|
|
|
config :ash_authentication_phoenix, DevWeb.Endpoint,
|
|
|
|
url: [host: "localhost"],
|
|
|
|
render_errors: [view: DevWeb.ErrorView, accepts: ~w(html json), layout: false],
|
|
|
|
pubsub_server: Dev.PubSub,
|
|
|
|
live_view: [signing_salt: "mwTS8kFY"],
|
|
|
|
http: [ip: {127, 0, 0, 1}, port: 4000],
|
|
|
|
check_origin: false,
|
|
|
|
debug_errors: true,
|
|
|
|
secret_key_base: "5PmCh9zQTJuCjlXm2EeF+hoYLkFxgH/3bzLE8D0Tzg5XLw6ZIMGipHFbr0z19dlC",
|
|
|
|
server: true
|
|
|
|
|
2024-04-02 09:45:27 +13:00
|
|
|
config :ash_authentication_phoenix, ash_domains: [Example.Accounts], namespace: Dev
|
2022-10-25 11:23:05 +13:00
|
|
|
|
2022-12-15 16:31:52 +13:00
|
|
|
config :ash_authentication_phoenix,
|
2022-10-25 11:23:05 +13:00
|
|
|
signing_secret: "All I wanna do is to thank you, even though I don't know who you are."
|
|
|
|
|
|
|
|
config :phoenix, :json_library, Jason
|
2022-11-22 14:34:48 +13:00
|
|
|
|
|
|
|
config :ash_authentication_phoenix, Example.Accounts.User,
|
2022-12-08 14:32:26 +13:00
|
|
|
authentication: [
|
|
|
|
strategies: [
|
|
|
|
auth0: [
|
|
|
|
client_id: System.get_env("OAUTH2_CLIENT_ID"),
|
|
|
|
client_secret: System.get_env("OAUTH2_CLIENT_SECRET"),
|
|
|
|
redirect_uri: "http://localhost:4000/auth",
|
|
|
|
site: System.get_env("OAUTH2_SITE")
|
2023-01-12 19:16:23 +13:00
|
|
|
],
|
|
|
|
github: [
|
|
|
|
client_id: System.get_env("GITHUB_CLIENT_ID"),
|
|
|
|
client_secret: System.get_env("GITHUB_CLIENT_SECRET"),
|
|
|
|
redirect_uri: "http://localhost:4000/auth"
|
2022-12-08 14:32:26 +13:00
|
|
|
]
|
|
|
|
]
|
2022-11-22 14:34:48 +13:00
|
|
|
]
|