An extension aimed to help link accounts easily
  • HTML 41.5%
  • CSS 37.9%
  • JavaScript 20.2%
  • Shell 0.2%
  • Pug 0.2%
Find a file
2022-04-22 10:29:32 -07:00
.circleci updates circle-ci node version 2021-06-30 14:20:42 -04:00
.github [Automated Script] Add stale config. 2018-10-16 18:38:35 +01:00
api fix: make custom css path absolute 2021-03-25 13:32:38 -05:00
build fix build script to match extension name generated 2021-07-05 08:38:33 -04:00
dist fix css paths 2020-01-28 16:09:45 -05:00
integration Bye babel 2018-04-04 13:20:51 -06:00
lib fix: make custom css path absolute 2021-03-25 13:32:38 -05:00
public remove 3rd party dependencies 2021-01-28 11:39:42 -03:00
rules [ESD-7040] add support for response_mode parameter (#72) 2020-06-19 12:48:19 -05:00
sample-app Fixes 2017-10-24 14:31:18 -03:00
server fixed redirect logic 2020-01-28 13:57:03 -05:00
templates fix lint 2021-01-28 11:47:42 -03:00
test fix test case 2021-04-06 14:23:14 -05:00
tools Uploading proper admin css to cdn on build 2017-11-18 07:46:13 -05:00
.eslintignore Fix linting 2017-11-07 15:54:02 -03:00
.eslintrc Fix linting 2017-11-07 15:54:02 -03:00
.gitignore removes build from .gitignore 2021-06-30 14:36:07 -04:00
.ignore Adding a .ignore file for ag 2017-08-18 17:46:13 -04:00
.nvmrc Resetting .nvmrc file back to boron series 2017-09-09 06:59:17 -04:00
babel.config.js Makes linter happy 2021-06-30 14:25:29 -04:00
CODEOWNERS Update CODEOWNERS 2022-04-01 12:54:08 -07:00
CONTRIBUTING.md Update CONTRIBUTING.md 2022-04-18 08:22:33 -07:00
gulpfile.js rule fix + onUpdate 2018-05-04 16:41:14 +03:00
index.js Remove babel. Switch to using module.exports 2018-04-04 11:55:22 -06:00
Jenkinsfile Update node version 2018-07-17 17:09:22 -04:00
LICENSE add LICENSE 2020-08-26 09:36:26 -03:00
locales.json Added Japanese translation 2020-06-12 22:44:16 +09:00
modifyRule.js Remove babel. Switch to using module.exports 2018-04-04 11:55:22 -06:00
package.json fix build script to match extension name generated 2021-07-05 08:38:33 -04:00
README.md IUM-1930 updated/created markdown files 2022-04-01 12:05:30 -07:00
webtask.js public wt url fix for stage2 2019-04-16 12:05:16 +03:00
webtask.json preVersion to actual version in prodwq 2021-06-30 14:51:55 -04:00
yarn.lock Use https://registry.yarnpkg.com/ 2021-06-30 14:01:11 -04:00

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, greatname@example.com.
  • 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:

nvm use 8
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

Release Process

Deployment is currently done using this tool: https://auth0-extensions.us8.webtask.io/extensions-deploy

First bump the version in package.json and in webtask.json

Then build the extension:

nvm use 8
yarn install
yarn run build

Bundle file (auth0-account-link.extension.VERSION.js is found in /dist Asset CSS files are found in /dist/assets

Follow the instructions in the deployment tool. This tool will also automatically generate a PR in the auth0-extensions repo. Only after the PR is merged will the extension be available in production. Before merging the PR you can use this tool to test the upgrade: https://github.com/auth0-extensions/auth0-extension-update-tester by overriding the extensions.json file that is fetched by the dashboard. You will need to clone this repo: https://github.com/auth0/auth0-extensions, update extensions.json locally and then run npx http-server --port 3000 --cors to serve up the file. Then configure the extension with http://localhost:3000/extensions.json as the path.