Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

auth0/auth0-account-link-extension

Folders and files

NameName
Last commit message
Last commit date
Apr 4, 2018
Jul 31, 2023
Apr 4, 2018
Apr 27, 2018
Nov 18, 2017
Apr 4, 2018
Apr 4, 2018
Apr 4, 2018
May 4, 2018
Oct 8, 2024
Apr 4, 2018
Apr 4, 2018
Apr 4, 2018
Nov 18, 2017
Nov 7, 2017
Nov 7, 2017
May 4, 2018
Aug 18, 2017
Sep 9, 2017
Apr 19, 2022
Apr 19, 2022
Nov 21, 2017
Mar 24, 2022
May 4, 2018
Apr 4, 2018
Jan 16, 2018
Apr 4, 2018
Oct 17, 2022
May 4, 2018
Apr 4, 2018
Apr 27, 2018
Apr 26, 2018

Repository files navigation

Auth0 Account Link Extension

This extension provides a rule and interface for giving users the option of linking a new account with an existing registered with the same email address from a different provider.

NOTE: Please make sure you are using your own social connections (Google, Facebook, etc...) API keys. Using Auth0's keys will result on an 'Unauthorized' error on account linking skip.

Example:

  • You signed up with FooApp with your email, [email protected].
  • You come back some time later and forget whether you signed in with your email or Google account with the same email address.
  • You try to use your Google account
  • You're then greeted with the UI presented from this extension, asking you if you'd like to link this account created with your Google account with a pre-existing account (the original you created with a username and password).

Running in Development

Update the configuration file under ./server/config.json:

{
  "EXTENSION_SECRET": "mysecret",
  "AUTH0_DOMAIN": "me.auth0.com",
  "AUTH0_CLIENT_ID": "myclientid",
  "AUTH0_CLIENT_SECRET": "myclientsecret",
  "WT_URL": "http://localhost:3000",
  "AUTH0_CALLBACK_URL": "http://localhost:3000/callback"
}

Then you can run the extension:

yarn install
yarn run build
yarn run serve:dev

Running puppeteer tests

In order to run the tests you'll have to start the extension server locally, fill the config.test.json file (normally with the same data as the config.json file) and run the Sample Test application located in sample-app/ (create a dedicated client for this app).

Then, you can run the tests running:

yarn test

About

An extension aimed to help link accounts easily

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 66.4%
  • JavaScript 31.2%
  • CSS 1.6%
  • Other 0.8%