oauth v2.0 demo

6
Typical OAuth 2.0 Use Case Demonstration by Santanu Dey

Upload: santanu-dey

Post on 08-Jan-2017

282 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: OAuth v2.0 demo

Typical OAuth 2.0 Use CaseDemonstration by Santanu Dey

Page 2: OAuth v2.0 demo

3 Legged OAuth

Developer-App

End-User (resource owner)

OAuth Provider

1. Developer Registers & Obtains application credentials to be used by the App.

2. Interacts with the App & intends to use resources from a third-party, OAuth-Provider

3. Application redirects the user to the OAuth Provider site

Page 3: OAuth v2.0 demo

3 Legged OAuth

Developer-App

End-User (resource owner)

OAuth Provider

6. Application exchange Auth code for Access token

5. Auth Code is generated and returned to the App via a redirect

4. User completes authentication & provides consent with a defined scope

Page 4: OAuth v2.0 demo

3 Legged OAuth

Developer-App

End-User (resource owner)

OAuth Provider

7. Access end-user resources within the scope defined by the consent using Access Token

8. Renew the access token without requiring user consent again using a Refresh Token

9. View, manage, revoke consent

From the access token Oauth Provider can resolve the user and return user specific resources.In the demo we will return Movie Recommendation

Page 5: OAuth v2.0 demo

Demo Set-up

Developer-App

End-User (resource owner)

OAuth Provider

Page 6: OAuth v2.0 demo

Thank YouDemo Video at YouTube: http://youtu.be/H0P6rXQCoSU