OAuth2 Mock Server

This is a mock OAuth2 authorization server. Use only for testing and demonstration.

Users from the configuration

Login Description
admin Администратор

Available Endpoints

Login Form

GET /login

Set this endpoint as authorization URI

Display all registered users with links to authorize

Authorization Endpoint

GET /authorize

Returns authorization code via redirect.

Parameters: login, response_type, client_id, redirect_uri, scope, state

Token Endpoint

POST /token

Set this endpoint as token URI

Parameters: grant_type, code, redirect_uri, client_id, client_secret, code_verifier, refresh_token

User Info Endpoint

GET /userinfo

Headers: Authorization: Bearer <access_token>

You can configure header's value prefix. See the application's configuration