OAuth2 simplified

25
OAuth 2.0 Simplified

Transcript of OAuth2 simplified

Page 1: OAuth2   simplified

OAuth 2.0

Simplified

Page 2: OAuth2   simplified

Presented By Vanjikumaran

Image is in this Slides are taken from the internet and the base concept taken on [1]

[1] https://www.tbray.org/ongoing/When/201x/2013/05/24/Access-Token-Hotel-Key

Page 3: OAuth2   simplified

On the way to Vacation!

Page 4: OAuth2   simplified

And they found the HOTEL

Page 5: OAuth2   simplified

HOTEL has RESOURCES

Page 6: OAuth2   simplified

Security!!

Page 7: OAuth2   simplified

Security!!!!!!!

Page 8: OAuth2   simplified

Security!!!!!!!!!!!!!!!!!!!!!!!

Page 9: OAuth2   simplified

Formal Request to HOTEL

Page 10: OAuth2   simplified

VANJI’s Identity Card

Page 11: OAuth2   simplified

HOTEL TOKEN

Page 12: OAuth2   simplified

Finally Vanji got Access 2 * @ HOTEL

Page 13: OAuth2   simplified

VANJI has access to RESOURCES

Page 14: OAuth2   simplified

VANJI has access to room

Page 15: OAuth2   simplified

Brid view Idea!

Page 16: OAuth2   simplified

OAuth 2 Access Token

● An OAuth 2 access token is like a hotel-

room key card. It gives access, all by itself

without further checking, to a particular

resource!

● It’s issued to a particular person, who has to

be authenticated first (like by showing my

driver’s license at the check-in.)

Page 17: OAuth2   simplified

OAuth 2 Access Token

● Nothing on the outside tells you who it’s

been issued to or what it’s for!

● It’s issued to a particular person, who has to

be authenticated first (like by showing my

driver’s license at the check-in.)

Page 18: OAuth2   simplified

But!! 2 friends of him next to him!

Page 19: OAuth2   simplified

TOM borrowed the HOTEL CARD

Page 20: OAuth2   simplified

TOM has access to RESOURCES

Page 21: OAuth2   simplified

TOM has access to VANJIs room

Page 22: OAuth2   simplified

OAuth 2 Access Token

● It’s not encrypted, so you have to take care

of it (if a bad guy got it and knew what it was

for, he could get into my hotel room and rob

me blind.) Check.

● You can give it to someone else and have

them access the resource for you!

Page 23: OAuth2   simplified

REVOKE HOTEL TOKEN!!!!!!!

Page 24: OAuth2   simplified

OAuth 2 Access Token

● If you lose it, you can go back to the issuer

and get another one which is functionally

identical.

● It expires after a while.

Page 25: OAuth2   simplified

READ MORE on OAuth 2.0

● http://oauth.net/2/

● http://tools.ietf.org/html/rfc6749