Mastering Microservices with Java by Sourabh Sharma;

Mastering Microservices with Java by Sourabh Sharma;

Author:Sourabh Sharma; [Неизв.]
Language: eng
Format: epub
Tags: COM060180 - COMPUTERS / Web / Web Services and APIs, COM051280 - COMPUTERS / Programming Languages / Java, COM060160 - COMPUTERS / Web / Web Programming
Publisher: Packt Publishing
Published: 2019-02-25T08:49:36+00:00


Authorization code grant

The first sample flow that we discussed in the OAuth 2.0 example flow for signing in with Twitter depicts an authorization code grant. We'll add a few more steps for the complete flow. As you know, after the eighth step, the end user logs in to the Quora application. Let's assume the user is logging in to Quora for the first time and requests their Quora profile page:

After logging in, the Quora user clicks on their Quora profile page

The OAuth client Quora requests the Quora user's (the resource owner's) resources (for example, a Twitter profile photo) from the Twitter resource server and sends the access token received in the previous step

The Twitter resource server verifies the access token using the Twitter authorization server

After successful validation of the access token, the Twitter resource server provides the requested resources to Quora (the OAuth client)

Quora uses these resources and displays the Quora profile page of the end user



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.