Skip to content

marinoaldi/auth0-javascript-oidc-sso-sample

 
 

Repository files navigation

Auth0 Vanilla Javascript - OIDC Single Sign-on Sample

This sample is a mix of:

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.

Structure

In this example, we have 3 applications:

Each application has its own folder in this repository with its own instructions on how to configure and run it.

Screenshots

Home Screen - Signed Out Home Screen - Signed Out

Home Screen - Signed In Home Screen - Signed In

API Call API Call

Installation Steps

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

What is Auth0?

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.

Create a free Auth0 account

  1. Go to Auth0 and click Sign Up.
  2. Use Google, GitHub or Microsoft Account to login.

Issue Reporting

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.

Author

Auth0

License

This project is licensed under the MIT license. See the LICENSE file for more info.

About

Auth0 Vanilla Javascript - OIDC Single Sign-on Sample: Silent Authentication / Authorization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.1%
  • HTML 40.0%
  • CSS 1.9%