redirect URI
The address an authorization server sends the browser back to, with the result, after the user signs in and consents.
An unchecked redirect can deliver codes or tokens to an attacker.
In more detail
It must be registered in advance and matched exactly, otherwise an attacker could substitute their own address and receive the code. Wildcards and partial matching are a common source of account-takeover bugs.
Related terms
- authorization code flow — The OAuth flow in which the browser brings back a short-lived code that the client then exchanges directly with the authorization server for tokens.
- OAuth client — In OAuth, the application that asks for and uses an access token to call an API on a user’s behalf.
- state parameter — A random value the client sends at the start of an OAuth flow and checks when the browser returns, binding the response to its own request.
Taught in
- OAuth Two And OpenID Connect — Modern API Architecture: REST, GraphQL & gRPC
- OAuth2 & OpenID Connect: Social Auth & PKCE Flows — Production Full-Stack Engineering