Skip to content

auth0/openidconnect-playground

Repository files navigation

OpenID Connect Playground

Uses Express, React, and I'll be taking apart passport next.

Sponsor

auth0 logo If you want to quickly add secure token-based authentication, built on the OpenID Connect standard to your projects, feel free to check Auth0's documentation and free plan at auth0.com/developers

Environment:

If running locally, create a .env file with these values:

JWT_SECRET=y0ur_secret
PORT=5000
REDIRECT_URI=http://localhost:5000/callback
CLIENT_ID=(client_id from a client in your tenant)
CLIENT_SECRET=(client_secret from a client in your tenant)
NON_SECURE_SESSION=true

To build:

npm run build

To run:

node index.js

http://localhost:5000

Dev:

Terminal 1 (backend):

npm start

Terminal 2 (frontend):

npm run watch

http://localhost:5000

License

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