Grant type
A grant type is an OAuth authorization flow that specifies how a client obtains authorization or an access token from an authorization server.
Spring Security in Action, Second Edition
A grant type is an OAuth 2 protocol flow by which a client obtains a token from an authorization server.
- How it is used
- Selects how a client obtains tokens for user-facing or backend-to-backend OAuth 2 authorization.
- How deep it goes
- Defines the main flows and their security roles, but defers detailed protocol mechanics and implementation steps.
- Examples
- Contrasts user authentication, backend service authentication, token renewal, and deprecated implicit or password flows.
- What you can do after
- Evaluate which OAuth 2 grant type fits a user login, service integration, or access-token renewal requirement.
Read how Spring Security in Action, Second Edition explains grant type →
ASP.NET Core in Action, 3e
A grant type is an OAuth 2.0-defined authorization flow for obtaining access credentials in a particular application scenario.
- How it is used
- Selects an OAuth 2.0 authorization flow for interactive user access or machine-to-machine API access.
- How deep it goes
- Defines three common flows and their scenarios, while directing readers to explore additional grants instead of inventing one.
- Examples
- Uses Facebook photo delegation, interactive authorization, and one API calling another without a user.
- What you can do after
- Evaluate which OAuth 2.0 flow fits an interactive user scenario or a machine-only API workflow.
What to know first
- authorizationAuthorization is the determination of which actions or resources an identity or other entity is permitted to access under defined permissions or policies.
- authenticationAuthentication is the process of verifying the claimed identity of a user, service, device, or other entity.
Related concepts
- authorization code flowincludes · The authorization code flow is an OAuth authorization flow in which a client obtains a short-lived authorization code after authorization and exchanges it for tokens.
- client credentials grant typeincludes · The client credentials grant is an OAuth 2.0 authorization flow in which a client uses its own credentials to obtain an access token without user involvement.
- OAuthpart of · OAuth is an authorization framework that enables a client to obtain limited, delegated access to protected resources without receiving the resource owner's credentials.
- tokenproduces · A token is a discrete unit of text, such as a word, subword, punctuation mark, or symbol, produced by tokenization and processed by a language model.
- OAuth2AuthorizedClientManagerimplemented by · OAuth2AuthorizedClientManager is a Spring Security component that manages authorized clients and obtains access tokens by executing OAuth 2 grant flows.
Questions about grant type
What is grant type?
A grant type is an OAuth authorization flow that specifies how a client obtains authorization or an access token from an authorization server.
Which Manning books explain grant type?
Spring Security in Action, Second Edition and ASP.NET Core in Action, 3e.
What should I know before learning grant type?
Manning books that teach grant type usually introduce authorization, authentication, implicit grant type and password grant type first.
What kinds of grant type are there?
Kinds of grant type include authorization code flow, client credentials grant type and password grant type.
What is grant type part of?
Grant type is part of OAuth. OAuth is an authorization framework that enables a client to obtain limited, delegated access to protected resources without receiving the resource owner's credentials.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

