Authserver API tests
Feature: Authserver
Covered endpoints and scenarios:
- GET /protected/datetime (API key checks)
- GET /oidc/.well-known/openid-configuration
- POST /oauth2/token (client_credentials, anonymous, password, refresh_token)
- POST /oauth2/introspection
- GET /oauth2/userinfo
- POST /oauth2/revoke
- POST /oauth2/bc-authorize (OIDC backchannel/device flow)
- Dynamic Client Registration endpoints: POST/GET/PATCH/DELETE /oauth2/register and /oauth2/register/{client_id}
Expected behavior:
- Successful requests return HTTP 200 and JSON response bodies (no statusCode field).
- Invalid or missing credentials return an error property in the response.
Anonymous token example
curl -i -v \
-H "Content-Type: application/json" \
"http://localhost:7071/api/idp/oauth21/token"
Test token example
curl -v -X POST "http://localhost:7071/api/idp/oauth21/token" \
-H "Content-Type: application/json" \
-d '{
"grant_type": "client_credentials",
"client_id": "test",
"client_secret": "test"
}'