This sample is a mix of:
- Auth0 JavaScript Samples https://github.com/auth0-samples/auth0-javascript-samples
- OIDC Single Sign-on Sample https://github.com/auth0-samples/oidc-sso-sample
- Auth0 Express API Samples https://github.com/auth0-samples/auth0-express-api-samples
- auth0-api-auth-implicit-sample https://github.com/auth0-samples/auth0-api-auth-implicit-sample
This sample demonstrates how to:
- Add authentication to a Javascript application with Auth0. The sample makes use of Auth0's hosted login page which provides centralized authentication.
- Add silent authentication (renewAuth) to a Javascript application with Auth0.
- Get a user's profile using Auth0 in a JavaScript application.
- Include user authorization in a JavaScript application with Auth0.
- Make secure calls to an API after authenticating a user with Auth0. The calls to the API are made with the user's access_token.
In this example, we have 3 applications:
- server-api: Express Server API
localhost:3090
- app-spa: Vanilla Single-Page App
localhost:3091
- app-mpa: Vanilla Multi-Page App
localhost:3092
Each application has its own folder in this repository with its own instructions on how to configure and run it.
Clone repository.
git clone https://github.com/marinoaldi/auth0-javascript-oidc-sso-sample.git
Run the following commands:
cd auth0-javascript-oidc-sso-sample
npm install
npm start
Auth0 helps you to:
- Add authentication with multiple authentication sources, 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.
- Add authentication through more traditional username/password databases.
- Add support for linking different user accounts with the same user.
- Support for generating signed Json Web Tokens to call your APIs and flow the user identity securely.
- Analytics of how, when and where users are logging in.
- Pull data from other sources and add it to the user profile, through JavaScript rules.
- Go to Auth0 and click Sign Up.
- Use Google, GitHub or Microsoft Account to login.
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 details the procedure for disclosing security issues.
This project is licensed under the MIT license. See the LICENSE file for more info.