How PayPal uses
                       Open Identity

                                    Tim Messerschmidt
Moosecon                          Developer Evangelist
                                               1
March 2012, Hannover                    @SeraAndroid
Who am I?
Tim Messerschmdit
Developer Evangelist
Startup Mentor
Author
                       2
3
4
What is identity
 in the Web?
                   5
6
7
PayPal Access
•  active users: 123.000.000
•  Uses OpenID Connect
•  Interesting for commercial use cases
  –  Adds integrity to existing applications
  –  Clearly business- & merchant-oriented
•  Actively being worked on!
  –  Expect new kick-ass features soon

                                               8
9
10
11
12
Why OpenID
 Connect?
             13
Authorization
     vs.
Authentication
                 14
OAuth 1.0

            15
OAuth 2.0

            16
OAuth 2.0 &
         the Road to Hell
Eran Hammer: http://hueniverse.com/2012/07/oauth-2-0-and-the-road-to-hell/   17
“OAuth 2.0 offers
little to none code
    reusability”
                      18
“What 2.0 offers
is a blueprint for
an authorization
     protocol”
                     19
On the Deadness
         of OAuth 2
Tim Bray: http://www.tbray.org/ongoing/When/201x/2012/07/28/Oauth2-dead   20
OAuth 2 is
useful today

               21
“OAuth 2 may not be perfect,
and may have been harmed by
 the Enterprise crap, but the
core of Web functionality […]
   seems to have survived.”
                                22
OpenID Connect

                 23
24
25
Session management
•  Highly demanded feature
  –  Service can be used to login & logout
•  OAuth 2.0 requires users to revoke
   permission to “logout”
•  Token validation & refreshment
•  AN Optional feature


                                             26
Authorization Flow
           Client                         Server
1.  Open Authorization          2.  Provide a login page
    Endpoint URL                3.  Return the Authorization
4.  Check callbacks for             Token after a successful
    Authorization Token             login
5.  Request a valid Access      6.  Check Authorization Token
    Token                           & return the Access Token
7.  Retrieve user’s resources       if it’s valid


                                                                27
OAuth 2.0
implementation can
be easily changed to
 OpenID Connect
                       28
Why should I
 use this?
               29
People forget passwords…

“45 % admit to leaving a website instead of re-
setting their password or answering security
questions” *
* Blue Inc. 2011


                                              30
People don’t like to register…

Out of 657 surveyed users 66 % think that
social sign-in is a desirable alternative. *
* Blue Inc. 2011



                                               31
Verified profiles

Email – as it’s the user’s login
Address – ship my stuff here!
Name – makes sense, too

… and much more information!

                                   32
1.    profile
5 scopes to   2.    email
access the    3.    address
  profile:    4.    phone
              5.    attributes

                                 33
Leverage
an existing
    profile

              34
x.com/identity

                 35
What’s next?




               36
Help? Problems?
•  paypal.com/dts
  –  Developer Technical Services
  –  Ticketing


•  StackOverflow.com
  –  Tag “PayPal”
  –  Actively being watched by Technical Service and Developer
     Evangelists like me

                                                                 37
Questions?
             38
Thanks!
 tmesserschmidt@paypal.com
@seraandroid / @paypaleurodev
 slideshare.net/PayPalEUDevs


                                39

Paypal