What does the OAuth 2.0 state parameter mainly defend against?
- CSRF on the redirect callback
- Token replay at the resource API
- Brute force of the client secret
- Expiry of the access token
The client binds a random state to the user session and rejects callbacks that return a different value.
Play Cybersecurity ▸