View on GitHub

reading-notes

CodeFellows Class Reading Notes

OAUTH2.0

OAuth: ‘an open standard for access delegation

How does OAuth work?

  1. Application requests specific permissions from user
  2. User agrees to the above request
  3. Remote service contacts application with one-time-use Code
  4. Application calls back to a special address on the remote service to exchange the Code for a Token
  5. Once the Token is granted, the application is able to contact hte remote service using the Token to access information on behalf of the user

At this point, the Token is for all intents and purposes the User

Access Code

Clients must grant permission to the application.

The request often includes

Access Token

Once the user grants access to the application, the authorization server will redirect to the provided URI callback with a code.

The code can be exchanged for an access token by making a POST request to the authorization server with the following information:


OAuth 2 Simplified

Video: What is OAuth really all about


Home