mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 21:03:23 +12:00
docs: Reflect assent's site -> base_url change.
This commit is contained in:
parent
408a28ccf4
commit
7319d29442
2 changed files with 5 additions and 5 deletions
|
@ -45,7 +45,7 @@ defmodule MyApp.Accounts.User do
|
||||||
client_id MyApp.Secrets
|
client_id MyApp.Secrets
|
||||||
redirect_uri MyApp.Secrets
|
redirect_uri MyApp.Secrets
|
||||||
client_secret MyApp.Secrets
|
client_secret MyApp.Secrets
|
||||||
site MyApp.Secrets
|
base_url MyApp.Secrets
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -74,8 +74,8 @@ defmodule MyApp.Secrets do
|
||||||
get_config(:client_secret)
|
get_config(:client_secret)
|
||||||
end
|
end
|
||||||
|
|
||||||
def secret_for([:authentication, :strategies, :auth0, :site], MyApp.Accounts.User, _) do
|
def secret_for([:authentication, :strategies, :auth0, :base_url], MyApp.Accounts.User, _) do
|
||||||
get_config(:site)
|
get_config(:base_url)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp get_config(key) do
|
defp get_config(key) do
|
||||||
|
@ -93,7 +93,7 @@ The values for this configuration should be:
|
||||||
* `redirect_uri` - the URL to the generated auth routes in your application
|
* `redirect_uri` - the URL to the generated auth routes in your application
|
||||||
(eg `http://localhost:4000/auth`).
|
(eg `http://localhost:4000/auth`).
|
||||||
* `client_secret` the client secret copied from the Auth0 settings page.
|
* `client_secret` the client secret copied from the Auth0 settings page.
|
||||||
* `site` - the "domain" value copied from the Auth0 settings page prefixed
|
* `base_url` - the "domain" value copied from the Auth0 settings page prefixed
|
||||||
with `https://` (eg `https://dev-yu30yo5y4tg2hg0y.us.auth0.com`).
|
with `https://` (eg `https://dev-yu30yo5y4tg2hg0y.us.auth0.com`).
|
||||||
|
|
||||||
Lastly, we need to add a register action to your user resource. This is defined
|
Lastly, we need to add a register action to your user resource. This is defined
|
||||||
|
|
|
@ -24,7 +24,7 @@ defmodule MyApp.Accounts.User do
|
||||||
client_id "123abc..."
|
client_id "123abc..."
|
||||||
redirect_uri {:ok, "123abc..."}
|
redirect_uri {:ok, "123abc..."}
|
||||||
client_secret fn -> {:ok, "123abc..."} end
|
client_secret fn -> {:ok, "123abc..."} end
|
||||||
site MyApp.Secrets
|
base_url MyApp.Secrets
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue