See a detailed walk-through of this app on the Express Quickstart.
If you don't yet have an Auth0 account, sign up for free.
Install the dependencies with npm:
npm install
Rename .env.example
to .env
and replace the following values:
CLIENT_ID
- your Auth0 application client idISSUER_BASE_URL
- absolute URL to your Auth0 application domain (ie:https://accountName.auth0.com
)APP_SESSION_SECRET
- a randomly rengerated string. You can generate one on the command line with the followingopenssl rand -hex 32
mv .env.example .env
Run the app:
npm start
The app will be served at localhost:3000
.
Please use the Issues queue in this repo for questions and feedback.
Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
Auth0 helps you to easily:
- implement authentication with multiple identity providers, including social (e.g., Google, Facebook, Microsoft, LinkedIn, GitHub, Twitter, etc), or enterprise (e.g., Windows Azure AD, Google Apps, Active Directory, ADFS, SAML, etc.)
- log in users with username/password databases, passwordless, or multi-factor authentication
- link multiple user accounts together
- generate signed JSON Web Tokens to authorize your API calls and flow the user identity securely
- access demographics and analytics detailing how, when, and where users are logging in
- enrich user profiles from other data sources using customizable JavaScript rules
This project is licensed under the MIT license. See the LICENSE file for more info.