Skip to content

Commit a9395c0

Browse files
authored
Merge pull request auth0#8859 from auth0/aa-acct-linking
Minor improvement in account linking extension
2 parents a893ab6 + 5bb1986 commit a9395c0

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

articles/extensions/account-link.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To install this extension, click on the __Account Link__ box in the list of prov
1818

1919
![Install Account Link Extension](/media/articles/extensions/account-link/install-extension.png)
2020

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.
2222

2323
## Setup
2424

@@ -28,7 +28,7 @@ We recommend changing the name of the default application used for the extension
2828

2929
### Updating the Login Page
3030

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.
3232

3333
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.
3434

@@ -48,6 +48,10 @@ Then save your changes and attempt to link an account. You'll notice that the **
4848

4949
![Account Linking Hosted Page](/media/articles/extensions/account-link/hosted-page-example.png)
5050

51+
:::note
52+
Hiding the Signup link is not supported in the New Universal Login Experience.
53+
:::
54+
5155
## Customization
5256

5357
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
5660

5761
## Administration Panel
5862

59-
::: warning
60-
This feature is available in version 2.0 and up.
61-
:::
62-
6363
You can customize your account linking login page and widget using the extension administration panel.
6464

6565
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
8787
:::note
8888
Uninstalling/reinstalling, as well as updating, the extension may override this change.
8989
:::
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:
96+
97+
![Account Linking Extension](/media/articles/extensions/account-link/account-linking-extension.png)
98+
99+
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.
228 KB
Loading

0 commit comments

Comments
 (0)