Skip to content

This project lets you quickly test an OpenID connect authentication IDP

Notifications You must be signed in to change notification settings

maliksahil/JWTPlayground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT Playground

The purpose of this little project is to make it simple to test an OpenID connect application. The instructions below demonstrate AzureAD usage, but really this can work with any valid JWT token. This was inspired by jwt.ms. While jwt.ms works great for copy pasted tokens, it is not suitable to act as a reply URL that accepts POST tokens. This project is.

Instructions!

(view with screenshots here - https://winsmarts.com/relying-party-token-decoder-for-your-openid-testing-15de91a74225)

Next, you need an IDP that can authenticate you. AzureAD is a free and easy alternative. Create an app registration in Azure AD, get it's client ID, and ensure http://localhost:3000 is a valid reply URL.

Now, visit the following URl to sign in (replace values accordingly, and remove line breaks)

https://login.microsoftonline.com/<tenantname>.onmicrosoft.com/oauth2/v2.0/authorize?
  client_id=<clientid>&
  response_type=id_token&
  redirect_uri=http%3A%2F%2Flocalhost:3000%2F&
  response_mode=form_post&
  scope=openid email&
  state=12345&nonce=678910

With this node based project still running, visit the above URL, it should authenticate you, and show the token returned parsed nicely for you.

About

This project lets you quickly test an OpenID connect authentication IDP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published