OneLogin OpenId Connect Auth Flow Sample
The sample tries to keep everything as simple as possible so only implements
- Login - redirecting users to OneLogin for authentication
- Logout - destroying the local session and revoking the token at OneLogin
- User Info - fetching profile information from OneLogin
In order to run this sample you need to setup an OpenId Connect app in your OneLogin Admin portal.
If you don't have a OneLogin developer account you can sign up here.
- Clone this repo
.envand update the client_id and client_secret you obtained from OneLogin as well as the Redirect Uri of your local site.
You need to make sure that the Redirect URI matches what you specified as the Redirect Uri when you setup your OIDC app connector in the OneLogin portal.
This sample uses an express app running on nodejs.
From the command line run
> npm install > npm start
By default these samples will run on
You will need to add your callback url to the list of approved Redirect URIs for your OneLogin OIDC app via the Admin portal. e.g.