Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

Latest commit

 

History

History

00-oidc-minimal

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

oidc-minimal

A minimal OP with no configuration, just a client to verify the deployment

  1. Clone the repo
git clone https://github.com/panva/node-oidc-provider-example.git my-provider
cd my-provider
  1. Create a heroku app
heroku create --addons securekey,heroku-redis:hobby-dev
  1. Enable (experimental) runtime-dyno-metadata
heroku labs:enable runtime-dyno-metadata
  1. Copy the minimal setup
cp 00-oidc-minimal/index.js src
  1. Commit to your local repo
git add .
git commit -a -m 'my initial commit'
  1. Deploy to heroku
git push heroku main
  1. Done!
heroku open '/.well-known/openid-configuration' # to see your openid-configuration  
heroku open '/auth?client_id=foo&response_type=id_token&redirect_uri=https%3A%2F%2Fjwt.io&scope=openid&nonce=foobar' # to start your first Authentication Request

You should see a login screen promting you to enter any login and password, afterwards a consent screen that you confirm. Your Request will be resolved and you will be redirected to jwt.io with an ID Token in the URL fragment.

Next up 01-oidc-configured

HINT: For more details consider documentation, configuration and details found in the oidc-provider repository.