Coder Social home page Coder Social logo

tawawa / auth0-jquery-passwordless-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from annyv2/auth0-jquery-passwordless-sample

0.0 1.0 0.0 58 KB

JQuery SPA samples for passwordless authentication

License: MIT License

CSS 6.20% JavaScript 0.25% HTML 93.55%

auth0-jquery-passwordless-sample's Introduction

Auth0 jQuery Passwordless SPA Samples

This set of samples shows how you can use passwordless authentication in your single page application. There are samples for both SMS and Email connections, using the Auth0 Lock widget as well as a custom UI alongside auth0.js SDK.

Key Features

Single Page Passwordless samples include:

  • Login with a one time code via sms using Lock
  • Login with a one time code via email using Lock
  • Login with a magic link via email using Lock
  • Login with a one time code via sms using your own UI and auth0.js
  • Login with a one time code via email using your own UI and auth0.js
  • Login with a magic link via email using your own UI and auth0.js

You can read more about Passwordless Authentication on our documentation Site, where you will find the complete Single Page App tutorials for:

Install locally

  1. Update content of the auth0-variables.js file with your Auth0 credentials:

    var AUTH0_CLIENT_ID='{CLIENT_ID}';
    var AUTH0_DOMAIN='{DOMAIN}';

    You can get the {CLIENT_ID} and {DOMAIN} values from the Auth0 Dashboard.

  2. In your App's configuration on the Auth0 Dashboard, add http://localhost:3000 to the Allowed Origins (CORS) list in order for the one time code samples to work, and add http://localhost:3000/custom-magic-link.html, http://localhost:3000/lock-magic-link.html, http://localhost:3000/lock-sms.html, http://localhost:3000/lock-email-code.html to the Allowed Callback URLs list for the magic link samples to function.

  3. Initialize a web server in the samples folder. You can do it for instance with serve:

    • Install node version 6 (using nvm)
    • run npm install -g serve
    • run serve -p 3000 in the project's folder to start a server
  4. Go to the index page and select the scenario you want to try.

auth0-jquery-passwordless-sample's People

Contributors

aaguiarz avatar jeffreylees avatar luisrudge avatar ntotten avatar peterblazejewicz avatar solepano avatar

Watchers

 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.