Your SlideShare is downloading. ×
OAuth: The API Gatekeeper
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

OAuth: The API Gatekeeper

1,023

Published on

Now that you have built your API, how do you let the right people have access to the right API at the right time? This talk covers the basics of API access management and then does a deep dive into …

Now that you have built your API, how do you let the right people have access to the right API at the right time? This talk covers the basics of API access management and then does a deep dive into modern authorization architectures.

Published in: Technology, Business
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,023
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
43
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. The API Gatekeeper Dick Hardt Monday, November 4, 13
  • 2. Agenda 2 Monday, November 4, 13
  • 3. Agenda •Access Control Overview 2 Monday, November 4, 13
  • 4. Agenda •Access Control Overview •OAuth History 2 Monday, November 4, 13
  • 5. Agenda •Access Control Overview •OAuth History •OAuth Flows 2 Monday, November 4, 13
  • 6. Agenda •Access Control Overview •OAuth History •OAuth Flows •Implementation Steps 2 Monday, November 4, 13
  • 7. Agenda •Access Control Overview •OAuth History •OAuth Flows •Implementation Steps •What can go wrong? 2 Monday, November 4, 13
  • 8. Agenda •Access Control Overview •OAuth History •OAuth Flows •Implementation Steps •What can go wrong? •Q & A 2 Monday, November 4, 13
  • 9. Authorization Code 3 Monday, November 4, 13
  • 10. Authorization Code •key into database 3 Monday, November 4, 13
  • 11. Authorization Code •key into database –user, scope, app id, expiry (5 min) 3 Monday, November 4, 13
  • 12. Authorization Code •key into database –user, scope, app id, expiry (5 min) •token (self contained) 3 Monday, November 4, 13
  • 13. Authorization Code •key into database –user, scope, app id, expiry (5 min) •token (self contained) –user, scope, app id, expiry (5 min) 3 Monday, November 4, 13
  • 14. Authorization Code •key into database –user, scope, app id, expiry (5 min) •token (self contained) –user, scope, app id, expiry (5 min) –JWT 3 Monday, November 4, 13
  • 15. Access Token Lifecycle 4 Monday, November 4, 13
  • 16. Access Token Lifecycle •key into database 4 Monday, November 4, 13
  • 17. Access Token Lifecycle •key into database –user, scope, app id, expiry, status 4 Monday, November 4, 13
  • 18. Access Token Lifecycle •key into database –user, scope, app id, expiry, status •token (self contained) 4 Monday, November 4, 13
  • 19. Access Token Lifecycle •key into database –user, scope, app id, expiry, status •token (self contained) –user, scope, app id, expiry (60 minutes) 4 Monday, November 4, 13
  • 20. Access Token Lifecycle •key into database –user, scope, app id, expiry, status •token (self contained) –user, scope, app id, expiry (60 minutes) –JWT 4 Monday, November 4, 13
  • 21. Access Token Lifecycle •key into database –user, scope, app id, expiry, status •token (self contained) –user, scope, app id, expiry (60 minutes) –JWT •Refresh token 4 Monday, November 4, 13
  • 22. Access Token Lifecycle •key into database –user, scope, app id, expiry, status •token (self contained) –user, scope, app id, expiry (60 minutes) –JWT •Refresh token –user, scope, app id, expiry / status 4 Monday, November 4, 13
  • 23. Access Token Lifecycle •key into database –user, scope, app id, expiry, status •token (self contained) –user, scope, app id, expiry (60 minutes) –JWT •Refresh token –user, scope, app id, expiry / status –JWT 4 Monday, November 4, 13
  • 24. API Authorization Middleware implementation dependent Monday, November 4, 13
  • 25. X-RateLimit-Limit: 500 X-RateLimit-Remaining: 432 Monday, November 4, 13
  • 26. Developer Documentation / Sandbox Monday, November 4, 13
  • 27. Developer Documentation / Sandbox Monday, November 4, 13
  • 28. What can go wrong? 8 Monday, November 4, 13
  • 29. What can go wrong? •Compromise of client secret 8 Monday, November 4, 13
  • 30. What can go wrong? •Compromise of client secret •Compromise of access tokens (server) 8 Monday, November 4, 13
  • 31. What can go wrong? •Compromise of client secret •Compromise of access tokens (server) –Developer rests client secret 8 Monday, November 4, 13
  • 32. What can go wrong? •Compromise of client secret •Compromise of access tokens (server) –Developer rests client secret –All access tokens are invalidated 8 Monday, November 4, 13
  • 33. What can go wrong? •Compromise of client secret •Compromise of access tokens (server) –Developer rests client secret –All access tokens are invalidated –Refresh tokens still work, but require new secret 8 Monday, November 4, 13
  • 34. What can go wrong? •Compromise of client secret •Compromise of access tokens (server) –Developer rests client secret –All access tokens are invalidated –Refresh tokens still work, but require new secret •Compromise of access token (client) 8 Monday, November 4, 13
  • 35. What can go wrong? •Compromise of client secret •Compromise of access tokens (server) –Developer rests client secret –All access tokens are invalidated –Refresh tokens still work, but require new secret •Compromise of access token (client) –User revokes authorization 8 Monday, November 4, 13
  • 36. What can go wrong? •Compromise of client secret •Compromise of access tokens (server) –Developer rests client secret –All access tokens are invalidated –Refresh tokens still work, but require new secret •Compromise of access token (client) –User revokes authorization •Resolution is self service 8 Monday, November 4, 13

×