liveBook · Manning

Authorization grant

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

An authorization grant is a credential or approval representing the resource owner's permission for a client to obtain an access token.

An authorization grant represents the resource owner's permission for a client to obtain an access token. In OAuth 2.0, the client exchanges the grant with the authorization server, then uses the resulting token to access protected resources. section 23.3.2 section 23.4

The authorization-grant flow proceeds as follows:

  • The client requests authorization from the resource owner. section 23.3.2
  • The resource owner grants permission, typically by logging in and approving access. section 23.3.2
  • The client exchanges the authorization grant for an access token at the authorization server. section 23.3.2 section 23.4
  • The client presents the access token to the resource server, which validates it and returns the permitted resource. section 23.3.2

Google Calendar delegation

A third-party calendar tool asks a user for permission to access Google Calendar data. After approval, the tool exchanges the authorization grant with Google’s authorization server, receives an access token, and requests calendar data from the resource server. section 23.3.2

Figure 23.7 The basic OAuth 2.0 process. Through access delegation, the client application is able to access the resource owner’s protected resources on behalf of the owner.
A diagram of a flowchart Description automatically generated

Use the OAuth 2.0 process diagram to follow delegation between the client, resource owner, authorization server, and resource server. section 23.3.2

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Traces the grant-to-token exchange and subsequent resource request, including scope, validation, expiration, and refresh.
Examples
Uses a third-party Google Calendar tool requesting delegated access to a user's calendar data.
What you can do after
Apply OAuth 2.0 by exchanging delegated permission for a scoped access token and using it to request protected resources.
How it connects
Connects the client, resource owner, authorization server, resource server, OAuth 2.0, access token, scope, and refresh token.

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.