Use this for server-to-server or API-to-API authentication using the OAuth 2.0 Client Credentials flow. This is common for backend APIs that don’t have human users.
Mjolnir will POST to your token URL with the client credentials to obtain an access token, then use that token to authenticate API requests.A typical token request looks like:
Copy
Ask AI
POST /oauth/token HTTP/1.1Content-Type: application/x-www-form-urlencodedgrant_type=client_credentials&client_id=your-client-id&client_secret=your-client-secret&scope=read write
If your application issues different client credentials with different permission scopes, add a separate test user for each. Mjolnir will use them to test whether one client can access resources scoped to another.