Protocol Overview
Autentico implements OAuth 2.0 (RFC 6749) and OpenID Connect Core 1.0. This section documents each grant type, the token format, and the supporting protocol endpoints.
Supported grant types
Section titled “Supported grant types”| Grant type | Use case |
|---|---|
authorization_code + PKCE |
Browser apps, mobile apps, server-side web apps — the standard secure flow |
refresh_token |
Exchange a refresh token for new access/ID tokens without re-authentication |
password (ROPC) |
Trusted first-party apps only — credentials submitted directly to the token endpoint |
client_credentials |
Machine-to-machine — no user involved |
urn:ietf:params:oauth:grant-type:device_code |
CLIs, TVs, and other input-constrained devices — the user approves on a second device (RFC 8628) |
Token grant errors
Section titled “Token grant errors”The token endpoint returns HTTP 400 with unsupported_grant_type for a nonempty grant type the server does not support. A missing or empty grant_type returns invalid_request. A supported grant that an authenticated client is not allowed to use returns unauthorized_client (RFC 6749 §5.2).
Supporting endpoints
Section titled “Supporting endpoints”| Endpoint | Purpose |
|---|---|
/.well-known/openid-configuration |
OIDC discovery document |
/oauth2/.well-known/jwks.json |
Public keys for token verification |
/oauth2/authorize |
Authorization endpoint — starts the auth flow |
/oauth2/token |
Token endpoint — exchange codes and refresh tokens |
/oauth2/device_authorization |
Device authorization endpoint (RFC 8628) — issues device and user codes |
/oauth2/userinfo |
UserInfo endpoint — user claims for access tokens |
/oauth2/introspect |
Token introspection (RFC 7662) |
/oauth2/revoke |
Token revocation (RFC 7009) |
/oauth2/logout |
Logout — deactivates the SSO session |
Keycloak-compatible aliases are available for the token and userinfo endpoints:
/oauth2/protocol/openid-connect/token/oauth2/protocol/openid-connect/userinfo
The /oauth2 path prefix is configurable via AUTENTICO_APP_OAUTH_PATH.
Where to go next
Section titled “Where to go next”- Authorization Code + PKCE — the flow most applications use
- Token Structure & Claims — what’s inside the JWTs
- Scopes — controlling what claims are included
- OIDC Discovery — auto-configuring OIDC clients