This is a browser based tester for OAuth 2.0 and OpenID Connect Authorization Code flow. Launch by navigating to following page
https://psteniusubi.github.io/oidc-tester
This browser based app requires CORS support from the OpenID Connect provider for the Token Endpoint. Most providers will support CORS but there are some exceptions.
There is no backend. Browser's local storage is used to store any configuration information such as provider metadata and client credentials.
If you want to fork this project then pay attention to dependencies to psteniusubi.github.io and webauthn-tester.
Navigate to Configuration page, then below Identity Provider click New
Get one of following from your OpenID Connect provider
- Issuer name that resolves to well known discovery endpoint
- Enter name into Issuer field, then click Fetch
- Discovery document as Json
- Copy Json document on Clipboard, then click Paste from Clipboard
- Values for authorization and token endpoints, and optionally others
- Enter endpoint values into respective fields
Navigate to Configuration page. Select a provider from list, then below Client click New
Register this app with the OpenID Connect provider
- Send Client configuration request to provider
- Click Copy to Clipboard
- Submit registration request to provider.
- Copy registration response on Clipboard, then click Paste from Clipboard
- Send redirect uri to provider
- https://psteniusubi.github.io/oidc-tester/authorization-code-flow.html
- Get client_id and optionally client_secret values from provider, enter into respective fields
Remember to click Set Active to activate a client.
Navigate to Tester to start testing
- Register OpenID Connect Provider
- Click link below to add issuer login.example.ubidemo.com
- https://psteniusubi.github.io/oidc-tester/configuration.html#issuer=https://login.example.ubidemo.com/uas
- Click Fetch
- Register OpenID Connect Client
- Navigate to
- https://psteniusubi.github.io/oidc-tester/configuration.html
- From list of providers, select login.example.ubidemo.com
- Below Client click New
- Copy Client configuration from below on Clipboard, then click Paste from Clipboard
{
"scope": "openid",
"redirect_uris": [
"https://psteniusubi.github.io/oidc-tester/authorization-code-flow.html"
],
"grant_types": [
"authorization_code"
],
"client_id": "5aa312bb-be15-4546-bafc-20608834b82b",
"client_secret": "M1lwPKB82yZ9rqA61rv5ZDGn6CgRDDil"
}