SlideShare a Scribd company logo
用户 Client Server 1.  发起授权操作(点击按钮) 2.  申请临时凭证( CK, right || CS ) 3.  返回临时凭证 4. 301 (TK , oauth_Callback_url) 5.  授权 url(TK, oauth_callback_url) 6. 301  回调 url (TK, verify code) 7.  回调 url (TK, verify code) 8.  获取 AK,AS 9. AK,AS 10.  请求 API (CK,AK|| CS + AS) 11.  结果 <  如果用户没有登陆,让其登陆 / 授权  >

More Related Content

Viewers also liked

Facebook & OAuth
Facebook & OAuthFacebook & OAuth
Facebook & OAuth
Danny Deng
 
Facebook_Oauth
Facebook_OauthFacebook_Oauth
Facebook_Oauth
Akshay Kale
 
Hands-on with OAuth, Facebook and the Force.com Platform
Hands-on with OAuth, Facebook and the Force.com PlatformHands-on with OAuth, Facebook and the Force.com Platform
Hands-on with OAuth, Facebook and the Force.com Platform
Pat Patterson
 
Oauth 2.0
Oauth 2.0Oauth 2.0
OAuth you said
OAuth you saidOAuth you said
OAuth you said
OAuth.io
 
OAuth - Open API Authentication
OAuth - Open API AuthenticationOAuth - Open API Authentication
OAuth - Open API Authentication
leahculver
 
OAuth presentation - Social Media 2016
OAuth presentation - Social Media 2016OAuth presentation - Social Media 2016
OAuth presentation - Social Media 2016
Rossana Salaro
 
OpenID vs OAuth - Identity on the Web
OpenID vs OAuth - Identity on the WebOpenID vs OAuth - Identity on the Web
OpenID vs OAuth - Identity on the Web
Richard Metzler
 
Implementing OAuth
Implementing OAuthImplementing OAuth
Implementing OAuth
leahculver
 
An Introduction to OAuth 2
An Introduction to OAuth 2An Introduction to OAuth 2
An Introduction to OAuth 2
Aaron Parecki
 

Viewers also liked (10)

Facebook & OAuth
Facebook & OAuthFacebook & OAuth
Facebook & OAuth
 
Facebook_Oauth
Facebook_OauthFacebook_Oauth
Facebook_Oauth
 
Hands-on with OAuth, Facebook and the Force.com Platform
Hands-on with OAuth, Facebook and the Force.com PlatformHands-on with OAuth, Facebook and the Force.com Platform
Hands-on with OAuth, Facebook and the Force.com Platform
 
Oauth 2.0
Oauth 2.0Oauth 2.0
Oauth 2.0
 
OAuth you said
OAuth you saidOAuth you said
OAuth you said
 
OAuth - Open API Authentication
OAuth - Open API AuthenticationOAuth - Open API Authentication
OAuth - Open API Authentication
 
OAuth presentation - Social Media 2016
OAuth presentation - Social Media 2016OAuth presentation - Social Media 2016
OAuth presentation - Social Media 2016
 
OpenID vs OAuth - Identity on the Web
OpenID vs OAuth - Identity on the WebOpenID vs OAuth - Identity on the Web
OpenID vs OAuth - Identity on the Web
 
Implementing OAuth
Implementing OAuthImplementing OAuth
Implementing OAuth
 
An Introduction to OAuth 2
An Introduction to OAuth 2An Introduction to OAuth 2
An Introduction to OAuth 2
 

Oauth flow

  • 1. 用户 Client Server 1. 发起授权操作(点击按钮) 2. 申请临时凭证( CK, right || CS ) 3. 返回临时凭证 4. 301 (TK , oauth_Callback_url) 5. 授权 url(TK, oauth_callback_url) 6. 301 回调 url (TK, verify code) 7. 回调 url (TK, verify code) 8. 获取 AK,AS 9. AK,AS 10. 请求 API (CK,AK|| CS + AS) 11. 结果 < 如果用户没有登陆,让其登陆 / 授权 >