oidcmock.dev

This is a mock OIDC provider for testing purposes. The discovery document is available at https://oidcmock.dev/.well-known/openid-configuration

Authorization

To start the OIDC flow, redirect the user to the authorization endpoint:

GET https://oidcmock.dev/oauth/authorize?client_id=<your_client_id>&response_type=<response_type>&redirect_uri=<your_redirect_uri>&state=<your_state>

The followingresponse_type values are supported:

The followingresponse_mode values are supported:

The following link can be used to test an implicit authorization flow:

https://oidcmock.dev/oauth/authorize?client_id=foo&response_type=id_token&redirect_uri=https://jwt.io

Token

To exchange an authorization code for a token, make a POST request to the token endpoint:

POST https://oidcmock.dev/oauth/token
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code
&code=<authorization_code>
&redirect_uri=<your_redirect_uri>
&client_id=<your_client_id>
&client_secret=test-client-secret

The default client secret is:test-client-secret