introduction to oauth2

13
OAuth 2 Valet Key for the Web by Leon Du Sunday, November 21, 2010

Upload: leondu

Post on 07-Dec-2014

3.701 views

Category:

Documents


3 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Introduction to OAuth2

OAuth 2Valet Key for the Web

by Leon Du

Sunday, November 21, 2010

Page 2: Introduction to OAuth2

Who Am I

• Freelancer / Ruby on Rails developer @guangzhou

• github.com/leondu

• twitter.com/leondu

• flickr.com/leondu

[email protected]

Sunday, November 21, 2010

Page 3: Introduction to OAuth2

Overview

20%

40%

40%

Introduction Use caseOthers

Sunday, November 21, 2010

Page 4: Introduction to OAuth2

What it is?

under your control

Share

Sunday, November 21, 2010

Page 5: Introduction to OAuth2

Protocol Flow

the OAuth Abstract Protocol Flow

Sunday, November 21, 2010

Page 6: Introduction to OAuth2

Who are in?

and much more...

Sunday, November 21, 2010

Page 7: Introduction to OAuth2

Use case• Register using Twitter account

Sunday, November 21, 2010

Page 8: Introduction to OAuth2

Use case

Sunday, November 21, 2010

Page 9: Introduction to OAuth2

Use case

Sunday, November 21, 2010

Page 10: Introduction to OAuth2

Use case

Sunday, November 21, 2010

Page 11: Introduction to OAuth2

OAuth in Ruby/Rails

• Service provideroauth2_provider: https://github.com/ThoughtWorksStudios/oauth2_provideroauth2-ruby: https://github.com/aflatter/oauth2-rubyrack-oauth2-server: https://github.com/flowtown/rack-oauth2-server

• ClientOAuth2: https://github.com/intridea/oauth2omniauth: https://github.com/intridea/omniauthdevise_oauth2_facebook https://github.com/mooktakim/devise_oauth2_facebookauthlogic_oauth2 https://github.com/andyhite/authlogic_oauth2

Sunday, November 21, 2010

Page 12: Introduction to OAuth2

Resources

• The Spechttp://tools.ietf.org/html/draft-ietf-oauth-v2

• Tutorialshttp://wiki.oauth.net/w/page/25236487/OAuth-2

http://hueniverse.com/oauth/

Sunday, November 21, 2010

Page 13: Introduction to OAuth2

Questions?

Sunday, November 21, 2010