You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/extensions/account-link.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ To install this extension, click on the __Account Link__ box in the list of prov
18
18
19
19

20
20
21
-
The extension will create a new **Application** named `auth0-account-link` to use internally and a new **Rule** to redirect users to the extension if they login with a new account that has an email matching an existing account.
21
+
The extension will create a new **Application** named `auth0-account-link` to use internally and a new **Rule** to redirect users to the extension if they login with a new account that has an email matching an existing account. This application needs to have enabled all the connections that you want to perform account linking with.
22
22
23
23
## Setup
24
24
@@ -28,7 +28,7 @@ We recommend changing the name of the default application used for the extension
28
28
29
29
### Updating the Login Page
30
30
31
-
By default, Auth0's [Universal Login](/hosted-pages/login) allows a user to both login and sign up as one may expect. However, when the account linking asks you to authenticate your primary account in order to link it with the new account, providing a sign up option can be confusing for users.
31
+
By default, Auth0's [Universal Login](/universal-login) allows a user to both login and sign up as one may expect. However, when the account linking asks you to authenticate your primary account in order to link it with the new account, providing a sign up option can be confusing for users.
32
32
33
33
To prevent this, we send over a query parameter to let the login page know that it should hide the **Sign Up** option. In order for this query parameter to take effect, however, we must first customize the login page.
34
34
@@ -48,6 +48,10 @@ Then save your changes and attempt to link an account. You'll notice that the **
Hiding the Signup link is not supported in the New Universal Login Experience.
53
+
:::
54
+
51
55
## Customization
52
56
53
57
At installation, or any time after by clicking the **Settings** icon for the Account Link Extension, you can add a URL to a custom stylesheet if you would like to customize the extension page to look a bit different from the default theme.
@@ -56,10 +60,6 @@ At installation, or any time after by clicking the **Settings** icon for the Acc
56
60
57
61
## Administration Panel
58
62
59
-
::: warning
60
-
This feature is available in version 2.0 and up.
61
-
:::
62
-
63
63
You can customize your account linking login page and widget using the extension administration panel.
64
64
65
65
Go to **Dashboard > Extensions > Installed Extensions > Auth0 Account Link**.
@@ -87,3 +87,15 @@ By default, line 27 of the rule is `issuer: auth0.domain`. You will need to chan
87
87
:::note
88
88
Uninstalling/reinstalling, as well as updating, the extension may override this change.
89
89
:::
90
+
91
+
## How does the extension work?
92
+
93
+
The extension triggers after authentication, when there is an existing user account using a different provider but with an email address that is the same as that of the user who just authenticated.
94
+
95
+
For example, if a user logs in with their Facebook account using the email `john@acme.com`, and then later authenticates with Google using the same email address, they will be prompted with a page like this:
The extension does not automatically link users with the same email, even if emails are verified. Verified emails are not enough evidence to prove that the user can currently authenticate to both accounts.
100
+
101
+
If the user clicks **Continue**, they will be redirected to Facebook to authenticate. If the user is already logged in, Facebook will redirect back to the application, and the user will be automatically linked. If they are not logged in, they will be prompted first to authenticate with their Facebook credentials. Then, the account will be linked with the Google account after Facebook redirects back to Auth0. This process ensures that it is the same user who has the credentials to authenticate to both accounts. This allows the accounts to be linked safely without fear of linking accounts incorrectly.
0 commit comments