This is a mock OIDC provider for testing purposes. The discovery document is available at https://oidcmock.dev/.well-known/openid-configuration
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:
code
id_token
token
The followingresponse_mode
values are supported:
query
fragment
form_post
The following link can be used to test an implicit authorization flow:
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