AUTHYX · DOCS
Tokeny a rotácia
Access token, ID token, refresh token, expiry, rotation a revoke.
AUTHYX
POST https://authyx.eu/api/oauth/token
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code
&client_id=app_xxx
&code=AUTHORIZATION_CODE
&redirect_uri=https://app.example.com/api/auth/callback
&code_verifier=ORIGINAL_VERIFIERAccess token
Krátkodobý bearer token pre UserInfo/API. Nezapisuj ho do URL. Ukladaj ho server-side alebo do bezpečnej HTTP-only session.
ID token
JWT s identitou používateľa. Validuj podpis cez JWKS, iss, aud, exp a nonce.
Refresh token
Vydáva sa pri scope offline_access. Authyx používa rotáciu: po úspešnom refresh requeste ulož nový refresh token a starý už nepoužívaj.
Revoke
POST /api/oauth/revoke s tokenom. Používateľ môže aplikácii odobrať prístup aj v Account Center → Aplikácie.