MATIH Platform is in active MVP development. Documentation reflects current implementation status.
6. Identity & Access Management
OAuth2
Overview

OAuth2 Overview

Production - OAuth2AuthorizationController, OAuth2ClientController, OAuth2TokenController

The IAM service implements an OAuth2 authorization server supporting the Authorization Code flow (with PKCE), Client Credentials grant, and token management including introspection and revocation.


Supported Grant Types

Grant TypeEndpointUse Case
Authorization CodeGET/POST /api/v1/oauth2/authorizeInteractive user login for third-party apps
Authorization Code + PKCESame + code_challengePublic clients (SPAs, mobile apps)
Client CredentialsPOST /api/v1/oauth2/tokenService-to-service authentication
Refresh TokenPOST /api/v1/oauth2/tokenToken renewal

OAuth2 Endpoints

MethodEndpointDescription
GET/api/v1/oauth2/authorizeAuthorization endpoint (redirect)
POST/api/v1/oauth2/authorizeAuthorization endpoint (JSON response)
POST/api/v1/oauth2/tokenToken endpoint
POST/api/v1/oauth2/revokeToken revocation
POST/api/v1/oauth2/introspectToken introspection
POST/api/v1/oauth2/clientsRegister client
GET/api/v1/oauth2/clientsList clients
GET/api/v1/oauth2/clients/{id}Get client
POST/api/v1/oauth2/clients/{id}/regenerate-secretRegenerate secret
DELETE/api/v1/oauth2/clients/{id}Delete client

Section Pages

PageDescription
Client ManagementClient registration and credential management
Authorization CodeAuthorization code flow with PKCE
Token ManagementToken issuance, introspection, revocation