41
Secure API Authorization with OAuth And ideas about mobile authentication Presented by Rick Mak (Software Architect, Oursky) Edwin Chu (User Experience Designer, Oursky)

Barcamp 2008 O Auth

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Barcamp 2008 O Auth

Secure API Authorization with OAuth

And ideas about mobile authentication

Presented by• Rick Mak (Software Architect, Oursky)• Edwin Chu (User Experience Designer, Oursky)

Page 2: Barcamp 2008 O Auth

Who is using/going to use OAuth?

Just to name a few

Page 3: Barcamp 2008 O Auth

Who is using/going to use OAuth?

Just to name a few

Page 4: Barcamp 2008 O Auth

Introduction - When to use OAuth?

Page 5: Barcamp 2008 O Auth

When to use OAuth? Remember the first thing you did in Facebook.

Page 6: Barcamp 2008 O Auth

When to use OAuth? Remember the first thing you did in Facebook.

You enter your Email account password here.

Page 7: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Is

Page 8: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Is

• An open protocol to allow secure API authorization in a simple and standard method

Page 9: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Is

• An open protocol to allow secure API authorization in a simple and standard method

• As an end-user, OAuth allows you to grant access to your private resources on one site (called the Service Provider), to another site (called Consumer), without giving out your credential.

Page 10: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Is

• An open protocol to allow secure API authorization in a simple and standard method

• As an end-user, OAuth allows you to grant access to your private resources on one site (called the Service Provider), to another site (called Consumer), without giving out your credential.

• As a desktop applications, dashboard widgets or gadgets, Javascript or browser-based apps, or webpage widgets developer, OAuth is a authorization protocol to get access to protected data.

Page 11: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Is

• An open protocol to allow secure API authorization in a simple and standard method

• As an end-user, OAuth allows you to grant access to your private resources on one site (called the Service Provider), to another site (called Consumer), without giving out your credential.

• As a desktop applications, dashboard widgets or gadgets, Javascript or browser-based apps, or webpage widgets developer, OAuth is a authorization protocol to get access to protected data.

• As a server-side APIs developer, OAuth give your users better protection and control on their data

Page 12: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Isn’t

Page 13: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Isn’t

Page 14: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Isn’t

• compete with OpenID ≠

Page 15: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Isn’t

• compete with OpenID

• an OpenID extension

Page 16: Barcamp 2008 O Auth

What OAuth Is and Isn’t

• What OAuth Isn’t

• compete with OpenID

• an OpenID extension

• a new concept. OAuth is similar to other protocols currently in use (Google AuthSub, AOL OpenAuth, Yahoo BBAuth, Upcoming API, Flickr API, Amazon Web Services API, etc)

Page 17: Barcamp 2008 O Auth

The OAuth’s Approach If Gmail supports OAuth

Some Gmail account name

Page 18: Barcamp 2008 O Auth

The OAuth’s Approach If Gmail supports OAuth

Some Gmail account name

Page 19: Barcamp 2008 O Auth

The OAuth’s Approach If Gmail supports OAuth

facebook is requesting access to your address book. If approved, facebook will have read only access for the next 1 hour.

Approve Deny

Some Gmail account name

Page 20: Barcamp 2008 O Auth

The OAuth’s Approach If Gmail supports OAuth

facebook is requesting access to your address book. If approved, facebook will have read only access for the next 1 hour.

Approve Deny

Some Gmail account name

Page 21: Barcamp 2008 O Auth

How does it work?

Source: http://oauth.net/core/1.0/

Page 22: Barcamp 2008 O Auth

How does it work?

Source: http://oauth.net/core/1.0/

Page 23: Barcamp 2008 O Auth

How does it work?

Source: http://oauth.net/core/1.0/

Page 24: Barcamp 2008 O Auth

How does it work? A simpler perspective

Page 25: Barcamp 2008 O Auth

How does it work? A simpler perspective

Please find my friends in the

address book of my Gmail account

Yes, sir.

1

Page 26: Barcamp 2008 O Auth

How does it work? A simpler perspective

Please find my friends in the

address book of my Gmail account

Yes, sir.

1

2Get Request Token

Request Token

Page 27: Barcamp 2008 O Auth

How does it work? A simpler perspective

Page 28: Barcamp 2008 O Auth

How does it work? A simpler perspective

3Facebook directs User to

Gmail’s sign in URL

Page 29: Barcamp 2008 O Auth

How does it work? A simpler perspective

3

4

Facebook directs User to Gmail’s sign in URL

Here is my username and

password. Pease keep it safe.

Sure

Are you sure your want to give access to Facebook for 1

hours?Yes

Page 30: Barcamp 2008 O Auth

How does it work? A simpler perspective

Page 31: Barcamp 2008 O Auth

How does it work? A simpler perspective

5Gmail directs User back to Facebook

Page 32: Barcamp 2008 O Auth

How does it work? A simpler perspective

5

6

Gmail directs User back to Facebook

Exchange Request Token for Access Token

Access Token

Page 33: Barcamp 2008 O Auth

How does it work? A simpler perspective

7

Get email addresses using the Access Token

Email addresses

Page 34: Barcamp 2008 O Auth

OAuth meets mobiles

Page 35: Barcamp 2008 O Auth

OAuth meets mobiles

Page 36: Barcamp 2008 O Auth

OAuth meets mobiles

Page 37: Barcamp 2008 O Auth

OAuth in Action Pownce

Page 38: Barcamp 2008 O Auth

OAuth in Action Pownce

Page 39: Barcamp 2008 O Auth

OAuth in Action Pownce

Page 40: Barcamp 2008 O Auth

OAuth in Action Pownce

Page 41: Barcamp 2008 O Auth

Contact Us

Oursky is a web application development company based in Hong Kong. Oursky offers web solutions consultation, web design, content management system and web application development.

Rick MakSoftware ArchitectEmail: [email protected]: 9620 5080

Edwin ChuUser Experience DesignerEmail: [email protected]: 9834 0556

~ The End ~