├── .gitignore
├── LICENSE
├── README.md
├── account-kit-passwordless
├── dist
│ ├── login.html
│ └── login_success.html
├── package.json
└── server.js
└── auth0-passwordless
├── dist
├── callback.html
└── login.html
├── package.json
└── server.js
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | package-lock.json
3 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Auth0 Blog Samples
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Passwordless Authentication Samples
2 |
3 | This repo contains code samples for the Passwordless Login with Facebook Account Kit article from the Auth0 blog. There are two NodeJs apps, one for Facebook Account Kit and the other for Auth0 Passwordless showing how you can add passwordless authentication in each.
4 |
5 | ## Setup Instructions: Facebook Account Kit
6 |
7 | Facebook Account Kit requires that you have a Facebook Developer Account with a registered app that has Account Kit enabled.
8 |
9 | 1. Run `npm install` to install dependencies (NodeJs is a prerequisite)
10 | 2. Open the `server.js` file
11 | 3. Replace `YOUR_FACEBOOK_APP_ID` and `YOUR_ACCOUNT_KIT_SECRET` with your credentials
12 | 4. Open the `login.html` file in the `/dist` directory
13 | 5. Replace `YOUR_FACEBOOK_APP_ID` with your credentials
14 | 6. Run the app executing `node server`
15 | 7. Navigate to `localhost:3000` to see the app
16 |
17 |
18 | ## Setup Instructions: Auth0 Passwordless
19 |
20 | Auth0 Passwordless requires that you have an Auth0 account. [Sign up](https://auth0.com) for free if you don't.
21 |
22 | 1. Run `npm install` to install dependencies (NodeJs is a prerequisite)
23 | 2. Open the `login.html` and `callback.html` pages
24 | 3. Replace `AUTH0_CLIENT_ID`, `AUTH0_DOMAIN` and `AUTH0_CALLBACKURL` with your credentials in each of the pages
25 | 4. Run the app by executing `node server` from the terminal
26 | 5. Navigate to `localhost:3000` to see the app
27 |
28 | ## What is Auth0?
29 |
30 | Auth0 helps you to:
31 |
32 | * Add authentication with [multiple authentication sources](https://docs.auth0.com/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.
33 | * Add authentication through more traditional **[username/password databases](https://docs.auth0.com/mysql-connection-tutorial)**.
34 | * Add support for **[linking different user accounts](https://docs.auth0.com/link-accounts)** with the same user.
35 | * Support for generating signed [Json Web Tokens](https://docs.auth0.com/jwt) to call your APIs and **flow the user identity** securely.
36 | * Analytics of how, when and where users are logging in.
37 | * Pull data from other sources and add it to the user profile, through [JavaScript rules](https://docs.auth0.com/rules).
38 |
39 | ## Create a free Auth0 account
40 |
41 | 1. Go to [Auth0](https://auth0.com/signup) and click Sign Up.
42 | 2. Use Google, GitHub or Microsoft Account to login.
43 |
44 | ## Issue Reporting
45 |
46 | If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
47 |
48 | ## Author
49 |
50 | [Auth0](auth0.com)
51 |
--------------------------------------------------------------------------------
/account-kit-passwordless/dist/login.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |