OAuth & OIDC Endpoints Reference
Base Authorization Server URL: https://auth.webburnstech.dev
Endpoint Summary
| Method | Endpoint | Description |
|---|---|---|
| GET | /.well-known/openid-configuration |
OpenID Connect discovery document describing issuer, endpoints, scopes, and supported PKCE/auth methods. |
| GET | /oauth/authorize |
Starts the interactive authorization + consent flow. |
| POST | /oauth/token |
Exchanges an authorization code (or refresh token) for access and ID tokens. |
| GET | /oauth/jwks |
JSON Web Key Set metadata endpoint advertised by discovery. |
| POST | /oauth/revoke |
Revokes an active access token or refresh token (RFC 7009). |
| GET | /api/userinfo |
Returns OpenID Connect identity claims for the authenticated Bearer token. |
GET /.well-known/openid-configuration
Standard OpenID Connect provider configuration JSON for automatic client/library setup.
Sample 200 JSON Response
{
"issuer": "https://auth.webburnstech.dev",
"authorization_endpoint": "https://auth.webburnstech.dev/oauth/authorize",
"token_endpoint": "https://auth.webburnstech.dev/oauth/token",
"userinfo_endpoint": "https://auth.webburnstech.dev/api/userinfo",
"revocation_endpoint": "https://auth.webburnstech.dev/oauth/revoke",
"jwks_uri": "https://auth.webburnstech.dev/oauth/jwks",
"response_types_supported": ["code"],
"grant_types_supported": ["authorization_code", "refresh_token"],
"subject_types_supported": ["public"],
"id_token_signing_alg_values_supported": ["HS256"],
"scopes_supported": ["openid", "profile", "email"],
"token_endpoint_auth_methods_supported": ["client_secret_post", "client_secret_basic", "none"],
"code_challenge_methods_supported": ["S256", "plain"],
"claims_supported": ["sub", "name", "email", "email_verified", "picture", "preferred_username"]
}
GET /oauth/authorize
| Query Parameter | Required | Notes |
|---|---|---|
client_id |
Yes | Your registered client ID (for example wb_...). |
redirect_uri |
Yes | Must match an exact registered URI in your Console client settings. |
response_type |
Yes | Must be code. |
scope |
Recommended | Space-separated scopes from openid profile email. |
state |
Recommended | Opaque CSRF value returned unchanged to your redirect_uri. |
code_challenge |
Yes for SPA / Native | Base64url-encoded SHA-256 hash of code_verifier. |
code_challenge_method |
Yes with PKCE | S256 (required for SPA and Native applications). |
POST /oauth/token
Supports both application/x-www-form-urlencoded client credentials (client_id + client_secret) and HTTP Authorization: Basic ... headers. Public SPA/Native clients using PKCE omit client_secret and authenticate with code_verifier.
Sample 200 Token Response
{
"access_token": "wbat_...",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "wbrt_...",
"scope": "openid profile email",
"id_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
POST /oauth/revoke
Accepts token (and optional client_id) in POST body to invalidate an access or refresh token immediately. Always returns HTTP 200 with {"revoked": true} on valid client requests per RFC 7009.
GET /api/userinfo
Requires header Authorization: Bearer <access_token>. Claims returned depend on the approved scopes of the token.
Sample UserInfo Response
{
"sub": "42",
"name": "Ada Lovelace",
"preferred_username": "ada",
"picture": "https://myaccount.webburnstech.dev/avatars/42.png",
"email": "[email protected]",
"email_verified": true
}