Software Securityhome
Fix a findingSearch
Glossary

OAuth

OAuth 2.0, the authorization framework (RFC 6749) with which a user lets a client application obtain limited, scoped access tokens for an API without sharing credentials. It delegates authorization and does not by itself authenticate the user to the client, which OpenID Connect adds; RFC 9700 is the current security best practice.

Also called
OAuth2
Defined in
RFC 6749 · RFC 9700

Covered in

Guide

OAuth 2.0 and OpenID Connect login: authorization code with PKCE

Implement OAuth 2.0 and OpenID Connect login with the authorization code flow and PKCE, keep each transaction bound to its browser, and block redirect, mix-up, code-injection and token-theft attacks.

Guide

Defend OAuth and OIDC against redirect and token attacks

Apply RFC 9700 and RFC 10017: exact redirect matching, PKCE with downgrade protection, state and iss binding, refresh-token rotation, sender-constrained tokens, and a backend-for-frontend so browser tokens cannot be stolen.

Guide

Redirect users only to destinations you control

Check every redirect target taken from a request, so attackers cannot borrow your domain for phishing, carry OAuth tokens off-site or steer a server-side fetcher through your redirects.

Guide

Constrain MCP and multi-agent trust boundaries

Validate each connection and delegated action without treating a token for another service, a tool description, another agent or a state handle as authority.

Guide

Prevent subdomain takeover from dangling DNS records

A DNS record that outlives its cloud resource lets whoever claims the name serve content on your domain. Bind records to resources in IaC, remove the record first, verify domains and scan for dangling records.

Guide

JWT validation: algorithms, keys, claims and key rollover

Validate a JWT against a fixed algorithm, trusted keys and the expected issuer, audience and type, reject the known header attacks, and rotate signing keys without accepting arbitrary keys or breaking valid tokens.

Practice: JWT validation lab: Validate the purpose and audience of a token · JWT verification lab: Verify a JWT before trusting it · Open redirect lab: Return users to this site only · OAuth redirect and PKCE lab: Match redirect URIs and verify PKCE

Find your next answer

Type to search. Search runs in your browser.

Searches run in your browser, but the host can infer them from the index files they load. The address shows your search so you can bookmark or share it.