Skip to Content
Mastering OAuth 2.0
book

Mastering OAuth 2.0

by Charles Bihis
December 2015
Beginner to intermediate content levelBeginner to intermediate
238 pages
5h 12m
English
Packt Publishing
Content preview from Mastering OAuth 2.0

A closer look at the authorization code grant flow

Our server-side application would like to view the profile and feed data of the user who is using the application. In order to do this, WMIIG must first get authorization from the user by sending them to the service provider's authorization endpoint, passing along with it various properties describing the request. This step is nearly identical to how we did it for the implicit grant flow, with one important difference which we will get to shortly.

Here, the user is presented with the user consent screen, where they have the option of either accepting or denying the request. Once the user either accepts or denies, the response is sent back to WMIIG via the redirection endpoint. If the user accepts, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

OAuth 2.0 Cookbook

OAuth 2.0 Cookbook

Adolfo Eloy Nascimento
Securing Microservice APIs

Securing Microservice APIs

Matt McLarty, Rob Wilson, Scott Morrison

Publisher Resources

ISBN: 9781784395407Supplemental Content