Hybrid Auth: OpenID + OAuth

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Hybrid Auth: OpenID + OAuth - Presentation Transcript

    1. Hybrid Auth: OAuth + OpenID Erik Eldridge Engineer/Evangelist Yahoo! Developer Network
    2. Overview
      • What, Why, and How of Hybrid Authentication
      • Sample code
      • Summary
      • Resources
    3. What is Hybrid Auth?
      • Using OpenID for authentication and Oauth to authorize data access
      • Similar to Facebook's Connect, but based on open standards
    4. Why should we use it?
      • Easy
        • Single flow for end-users
      • Portable
        • Open source libraries
        • Any service can be an OpenID "Provider"
        • Transferable skill-set and technologies
    5. How do we get started?
      • Setup
      • Implementation
      • Sample
    6. Setup requirements
      • Visit developer.yahoo.com/dashboard
      • Register an OAuth application
      • Download Yahoo! Social SDK from github.com/yahoo
      • Download OpenID-Enabled library from openidenabled.com
    7. Generalized implementation
      • Define a log in/out mechanism for your site
      • If user is not logged in, initialize authentication via OpenID with Simple Registration
      • In OpenID callback, check if OAuth access token for user is stored
      • If access token does not exist, exchange request token for access token and store access token
      • Log in user using local mechanism and begin fetching data using Oauth
    8. Example
      • service
        • index.html
        • openid/
          • index.php
          • return_to.php
          • php-openid-2.1.3/
        • oauth/
          • index.php
          • yahoo-social-php-sdk/
    9. Service/index.html, top
    10. Service/index.html, middle
    11. Service/index.html, bottom
    12. Service/openid/index.php, top
    13. Service/openid/index.php, bottom
    14. Service/openid/return_to.php, top
    15. Service/openid/return_to.php, middle
    16. Service/openid/return_to.php, bottom
    17. Service/oauth/index.php
    18. Summary
      • What?
        • Combination of OpenID authentication and OAuth authorization
      • Why?
        • Convenient for the end-user: single auth flow
      • How?
        • Yahoo! Social SDK + OpenID-Enabled OpenID library (with a pinch of YUI and YQL)
    19. Resources
      • developer.yahoo.com/openid
      • developer.yahoo.com/oauth
      • example.erikeldridge.com/{example code}
      • Find me on Twitter: @erikeldridge

    + Erik EldridgeErik Eldridge, 1 month ago

    custom

    338 views, 1 favs, 0 embeds more stats

    >>> This is a draft <<< Not all links/code more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 338
      • 338 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 7
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories