From 04a773ec2728054bb8931dd628fb47a2ff5bda9d Mon Sep 17 00:00:00 2001 From: De Wet Blomerus Date: Thu, 28 Sep 2023 10:26:42 -0400 Subject: [PATCH] =?UTF-8?q?docs:=20Clarify=20starting=20position=20?= =?UTF-8?q?=F0=9F=8F=8E=EF=B8=8F=20(#441)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docs: Match the identity from the AshAuthenticationPhoenix guide ✅ --- documentation/tutorials/auth0-quickstart.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/documentation/tutorials/auth0-quickstart.md b/documentation/tutorials/auth0-quickstart.md index c9d5654..c3a7513 100644 --- a/documentation/tutorials/auth0-quickstart.md +++ b/documentation/tutorials/auth0-quickstart.md @@ -3,7 +3,10 @@ This is a _very quick_ tutorial on how to configure your application to use Auth0 for authentication. -First, you need to configure an application in [the Auth0 +Before you start this tutorial, skip the Token resource while following the +[AshAuthenticationPhoenix guide](https://hexdocs.pm/ash_authentication_phoenix/getting-started-with-ash-authentication-phoenix.html)) + +Next, you need to configure an application in [the Auth0 dashboard](https://manage.auth0.com/) using the following steps: 1. Click "Create Application". @@ -30,8 +33,7 @@ dashboard](https://manage.auth0.com/) using the following steps: 7. Set "Allowed Web Origins" to your application's base URL. 8. Click "Save Changes". -Next we can configure our resource (assuming you already have everything else -set up): +Next we can configure our resource: ```elixir defmodule MyApp.Accounts.User do @@ -117,7 +119,7 @@ defmodule MyApp.Accounts.User do argument :user_info, :map, allow_nil?: false argument :oauth_tokens, :map, allow_nil?: false upsert? true - upsert_identity :email + upsert_identity :unique_email # Required if you have token generation enabled. change AshAuthentication.GenerateTokenChange