SlideShare uma empresa Scribd logo
1 de 10
Baixar para ler offline
Open ID & OAuth

    Paul Fryer
    June 2011
What we’ll cover
•   What is OpenID and OAuth?
•   Where and why are these used?
•   “In the wild” examples.
•   Source code examples.
What is OpenID?
• OpenID is about verifying identity
  (authenticating).
• Prevents users from having to maintain
  multiple identities with websites/electronic
  systems.
Who uses OpenID?
• You probably already have an OpenID.
• Most of the major web players have an
  implementation.
• You can provide your own implementation.
How does OpenID Work?
1.    What’s your OpenID?
2.    User enters OpenID.
3.    Request the OpenID Provider page.
4.    Provider returns page with
      openid.server and, optionally,
      openid.delegate.
5.    Build URL and make request to
      OpenID server.
6.    OpenID server presents login
      screen.
7.    User provides credentials.
8.    OpenID server asks user to
      authorize use.
9.    User responds to authorization
      request.
10.   User redirected to success or failure
      URL.
11.   Appropriate page is rendered
      depending on success or failure.
What is OAuth?
• OAuth is about authorizing 3rd party sites to
  access user information.
• Allows sharing of user data with other systems
  without providing credentials to the other
  systems.
Who uses OAuth?
• Most major web players.
• Facebook, Twitter, Google, Flickr, more..
• You can too! Just download an open source
  library for your programming language of
  choice (Dot Net, Cold Fusion, Lisp, Java,
  JavaScript, Objective C, Perl, Ocaml, PHP, Ruby,
  Python, Erlang, more..)
Live Example
• Stackoverflow.com
• Built on
Source Code Examples
• Examples using the Dot Net Open Auth library.
• ASP.Net MVC example using OpenID.
• ASP.Net Web Forms example using OAuth.

Mais conteúdo relacionado

Semelhante a open id & o-auth

SSO with the WSO2 Identity Server
SSO with the WSO2 Identity ServerSSO with the WSO2 Identity Server
SSO with the WSO2 Identity Server
WSO2
 
Sso with the wso2 identity server
Sso with the wso2 identity serverSso with the wso2 identity server
Sso with the wso2 identity server
sureshattanayake
 
how to connect your app to the activity stream with x-pages
how to connect your app to the activity stream with x-pageshow to connect your app to the activity stream with x-pages
how to connect your app to the activity stream with x-pages
Frank van der Linden
 

Semelhante a open id & o-auth (20)

Facebook_Oauth
Facebook_OauthFacebook_Oauth
Facebook_Oauth
 
Facebook_Oauth
Facebook_OauthFacebook_Oauth
Facebook_Oauth
 
Implementing OpenID for Your Social Networking Site
Implementing OpenID for Your Social Networking SiteImplementing OpenID for Your Social Networking Site
Implementing OpenID for Your Social Networking Site
 
Openid+Opensocial
Openid+OpensocialOpenid+Opensocial
Openid+Opensocial
 
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
 
Introduction to sitecore identity
Introduction to sitecore identityIntroduction to sitecore identity
Introduction to sitecore identity
 
OpenID and OAuth
OpenID and OAuthOpenID and OAuth
OpenID and OAuth
 
SSO with the WSO2 Identity Server
SSO with the WSO2 Identity ServerSSO with the WSO2 Identity Server
SSO with the WSO2 Identity Server
 
Sso with the wso2 identity server
Sso with the wso2 identity serverSso with the wso2 identity server
Sso with the wso2 identity server
 
HTTP - The Protocol of Our Lives
HTTP - The Protocol of Our LivesHTTP - The Protocol of Our Lives
HTTP - The Protocol of Our Lives
 
how to connect your app to the activity stream with x-pages
how to connect your app to the activity stream with x-pageshow to connect your app to the activity stream with x-pages
how to connect your app to the activity stream with x-pages
 
Xplore Group - Flashtalk (Fabric8, Neo4j, GraphQL, OpenID Connect)
Xplore Group - Flashtalk (Fabric8, Neo4j, GraphQL, OpenID Connect)Xplore Group - Flashtalk (Fabric8, Neo4j, GraphQL, OpenID Connect)
Xplore Group - Flashtalk (Fabric8, Neo4j, GraphQL, OpenID Connect)
 
Server-side Java Programming
Server-side Java ProgrammingServer-side Java Programming
Server-side Java Programming
 
Openid & Oauth: An Introduction
Openid & Oauth: An IntroductionOpenid & Oauth: An Introduction
Openid & Oauth: An Introduction
 
OpenID Connect "101" Introduction -- October 23, 2018
OpenID Connect "101" Introduction -- October 23, 2018OpenID Connect "101" Introduction -- October 23, 2018
OpenID Connect "101" Introduction -- October 23, 2018
 
Open ID Explained
Open ID ExplainedOpen ID Explained
Open ID Explained
 
1. web technology basics
1. web technology basics1. web technology basics
1. web technology basics
 
Securing .NET Core, ASP.NET Core applications
Securing .NET Core, ASP.NET Core applicationsSecuring .NET Core, ASP.NET Core applications
Securing .NET Core, ASP.NET Core applications
 
Open ID
Open IDOpen ID
Open ID
 
CBSE class X Computer Applications ch 1 INTERNET
CBSE class X Computer Applications ch 1 INTERNETCBSE class X Computer Applications ch 1 INTERNET
CBSE class X Computer Applications ch 1 INTERNET
 

open id & o-auth

  • 1. Open ID & OAuth Paul Fryer June 2011
  • 2. What we’ll cover • What is OpenID and OAuth? • Where and why are these used? • “In the wild” examples. • Source code examples.
  • 3. What is OpenID? • OpenID is about verifying identity (authenticating). • Prevents users from having to maintain multiple identities with websites/electronic systems.
  • 4. Who uses OpenID? • You probably already have an OpenID. • Most of the major web players have an implementation. • You can provide your own implementation.
  • 5. How does OpenID Work? 1. What’s your OpenID? 2. User enters OpenID. 3. Request the OpenID Provider page. 4. Provider returns page with openid.server and, optionally, openid.delegate. 5. Build URL and make request to OpenID server. 6. OpenID server presents login screen. 7. User provides credentials. 8. OpenID server asks user to authorize use. 9. User responds to authorization request. 10. User redirected to success or failure URL. 11. Appropriate page is rendered depending on success or failure.
  • 6. What is OAuth? • OAuth is about authorizing 3rd party sites to access user information. • Allows sharing of user data with other systems without providing credentials to the other systems.
  • 7. Who uses OAuth? • Most major web players. • Facebook, Twitter, Google, Flickr, more.. • You can too! Just download an open source library for your programming language of choice (Dot Net, Cold Fusion, Lisp, Java, JavaScript, Objective C, Perl, Ocaml, PHP, Ruby, Python, Erlang, more..)
  • 8.
  • 10. Source Code Examples • Examples using the Dot Net Open Auth library. • ASP.Net MVC example using OpenID. • ASP.Net Web Forms example using OAuth.