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:

  1. After logging in, the Quora user clicks on their Quora profile page.
  2. The OAuth client Quora requests the Quora user's (resource owner) resources (for example, Twitter profile photo, and so on) from the Twitter resource server and sends the access token received in the previous step.
  3. The Twitter resource server verifies the access token using the Twitter ...

Get Mastering Microservices with Java 9 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.