Giter VIP home page Giter VIP logo

auth0-duplicate-email's Introduction

auth0-duplicate-email

Users with duplicate non-unique Emails in Auth0

auth0-duplicate-email

Users with duplicate non-unique Emails in Auth0

Setup

1. Create a Database Connection

Name: unique. Turn on username required.

2. Create a custom non-migrating DB

Name: fixer

Turn on custom database and copy scripts from custom-db/ folder. Turn on username required.

3. Application

Create an M2M Application.

  1. Allocate both unique and fixer connections to this app.
  2. Assign Management API. All 'users' and 'ticket' scopes
  3. Copy application details to .env, server/env.php files

4. Update fixer Custom DB Configuration

Name Value
Client_ID M2M Client ID
Client_Secret M2M Client Secret
Connection unique

6. Rule

Add rules/merger.js to Rules.

5. HLP

    var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
      // ....
      forgotPasswordLink: 'http://localhost:8080/forgotpassword.php'
    });

6. Forgotten Password Page

php -S localhost:8080 -t server

Usage

1. Sign up a Users with Shared Email

./sign-up.sh -u user01 -m [email protected] -p password1
./sign-up.sh -u user02 -m [email protected] -p password2
./sign-up.sh -u user03 -m [email protected] -p password3

2. Sign in with Username

https://tenant.auth0.com/authroize?connection=fixer

3. Password Reset

In the login page, click on "forgotten password" link. Enter username for reset email.

HLP

    var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
      // ....
      forgotPasswordLink: 'http://mycompany.com/forgotpassword.php'
    });

auth0-duplicate-email's People

Contributors

abbaspour avatar sandeepneerarambham avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.