SlideShare uma empresa Scribd logo
1 de 4
Baixar para ler offline
51-21-9002                                                        南 指 门 入 痛 无htuAo




      est's blog
      Mobilis in Mobili



             04
      oAuth
      Web, programming

              #1       yeeyan           , #2   rollingcode.org


                                                                                     oAuth                   http://oauth.net/core/1.0/
                                               oAuth

                  oAuth
      oAuth             3                        1.          2.                  /                   A 3.                  B

      oAuth                               senario
                                                 A                                                       B
        B                                A




                                                             Flickr
           xiaonei.com              SNS                                Hotmail




      1.                                                              Ctrl+C, Ctrl+V
      2.                                ——
      3.                                 ID                                              ——


      oAuth
                                    B                  URL                                   A
                            A                                B           Yes/No
                      Yes                       A                      B     /


                                3

      1.        2                                            B                       A                        Obtaining an
           Unauthorized Request Token                                                “                       ”             A
      2.                                               A         /                           Obtaining User Authorization

      3.                                            B                                    B       /            A
                            Obtaining an Access Token                                    “            (Access Token)”
                  “         ”               B                                                    A
                                                    A

               oauth_token                                                  oauth_token
           oauth_token_secret                   other_parameters
           oauth_token                                                                               oauth_token




             oAuth
108336/sevihcra/nc.2oy.evitaitini                                                                                                         4/1
51-21-9002                                                       南 指 门 入 痛 无htuAo
      Technically          2                                                                   oAuth
                         Consumer Request Parameters                     oAuth 1.0       5.2                                 oAuth
             3

      1.    HTTP GET               URL             ?                                                               iframe   img
          XSS
      2. HTTP POST                     Content-Type
      3.                               HTTP                                                    OAuth HTTP Authorization Scheme

                                                                                                         “         ”




                                  Signature




                                                                                                               “       ”

      oAuth                  3                    HMAC-SHA1, RSA-SHA1              PLAINTEXT                       oAuth




      1. HTTP            GET, POST            HEAD
      2.                  HTTP URL
      3.                   oAuth

        3                &                                 hmac          RSA
                                  oAuth                       “          ”        PLAINTEXT

                                                  oAuth
      secret key

                   oAuth

                     B                                                                 B
                                                                              A      douban                  Douban API Key
             Douban API Key

                                          Douban               API Key

      oAuth                                   “            ”              “          ”                  B
                 A




                                 SHA1, RSA-SHA1            PLAINTEXT                                   oAuth




                 timestamp                        google




                                                       library


      oAuth
108336/sevihcra/nc.2oy.evitaitini                                                                                                    4/2
51-21-9002                                          南 指 门 入 痛 无htuAo
      oAuth                                 Web       “   (authorization)”

      oAuth                                   Web                                    widget            javascript
      webapps                     oAuth       est                                     cookiejar            + Flash
        LSO         oAuth

      oAuth                                                                                 /     /    API
      Digg, Jaiku, Flickr, Ma.gnolia, Plaxo, Pownce, Twitter, Google, Yahoo, and others soon to follow
                 oAuth 1.0                        email            B

                  Douban           oAuth                                     oAuth




                                                  A                                    X     Y     Z


      9 Responses to “oAuth                           ”

             1.   Pan Says:
                      11th, 2009 at 14:58



                  Reply


             2.          Says:
                      20th, 2009 at 19:35



                  Reply


             3.                  Says:
                      20th, 2009 at 19:37



                  Reply


             4.       3D Says:
                      20th, 2009 at 19:37



                  Reply


             5.   sunny Says:
                      12th, 2009 at 11:39



                  Reply


             6.   kkppccdd Says:
                      14th, 2009 at 13:32



                  Reply


             7.   rocyhua Says:
                      3rd, 2009 at 15:05


108336/sevihcra/nc.2oy.evitaitini                                                                                    4/3
51-21-9002                                      南 指 门 入 痛 无htuAo


                  Reply


             8.   liuxingyuyuni Says:
                          9th, 2009 at 13:30



                  Reply


             9.   Symphony Says:
                          29th, 2009 at 14:28



                  Reply




108336/sevihcra/nc.2oy.evitaitini                                  4/4

Mais conteúdo relacionado

Destaque

Destaque (20)

Online customer service trends 2012
Online customer service trends 2012 Online customer service trends 2012
Online customer service trends 2012
 
Danube Art Master 2012 Fact Sheet in Serbian
Danube Art Master 2012 Fact Sheet in SerbianDanube Art Master 2012 Fact Sheet in Serbian
Danube Art Master 2012 Fact Sheet in Serbian
 
SustSan workshop: Implementation Tools: hardware and software by Tandiwe Erlmann
SustSan workshop: Implementation Tools: hardware and software by Tandiwe ErlmannSustSan workshop: Implementation Tools: hardware and software by Tandiwe Erlmann
SustSan workshop: Implementation Tools: hardware and software by Tandiwe Erlmann
 
Danube Art Master 2012 Fact Sheet in Ukrainian
Danube Art Master 2012 Fact Sheet in UkrainianDanube Art Master 2012 Fact Sheet in Ukrainian
Danube Art Master 2012 Fact Sheet in Ukrainian
 
SustSan workshop: Single family treatment wetlands progress in Poland by Magd...
SustSan workshop: Single family treatment wetlands progress in Poland by Magd...SustSan workshop: Single family treatment wetlands progress in Poland by Magd...
SustSan workshop: Single family treatment wetlands progress in Poland by Magd...
 
IDMP CEE 2nd workshop: 4 Quarter Report by PRG
IDMP CEE 2nd workshop: 4 Quarter Report by PRGIDMP CEE 2nd workshop: 4 Quarter Report by PRG
IDMP CEE 2nd workshop: 4 Quarter Report by PRG
 
Third IDMP CEE workshop: Drought Information Exchange Platform by Gregor Greg...
Third IDMP CEE workshop: Drought Information Exchange Platform by Gregor Greg...Third IDMP CEE workshop: Drought Information Exchange Platform by Gregor Greg...
Third IDMP CEE workshop: Drought Information Exchange Platform by Gregor Greg...
 
Regional Newsletter 2/2004
Regional Newsletter 2/2004Regional Newsletter 2/2004
Regional Newsletter 2/2004
 
Water Scarcity and Climate Uncertainty by Elena Mateescu, National Meteorolog...
Water Scarcity and Climate Uncertainty by Elena Mateescu, National Meteorolog...Water Scarcity and Climate Uncertainty by Elena Mateescu, National Meteorolog...
Water Scarcity and Climate Uncertainty by Elena Mateescu, National Meteorolog...
 
Intergrated Drought Management Programme in Central and Eastern Europe by Sab...
Intergrated Drought Management Programme in Central and Eastern Europe by Sab...Intergrated Drought Management Programme in Central and Eastern Europe by Sab...
Intergrated Drought Management Programme in Central and Eastern Europe by Sab...
 
IDMP CEE Activity 1.2 by Elena Fatulova
IDMP CEE Activity 1.2 by Elena FatulovaIDMP CEE Activity 1.2 by Elena Fatulova
IDMP CEE Activity 1.2 by Elena Fatulova
 
IDMP CEE Communications by Gergana Majercakova
IDMP CEE Communications by Gergana MajercakovaIDMP CEE Communications by Gergana Majercakova
IDMP CEE Communications by Gergana Majercakova
 
1 idmp cee overview_bokal
1 idmp cee overview_bokal1 idmp cee overview_bokal
1 idmp cee overview_bokal
 
14 assessment of drought impact on forests act. 5.2_bardarska
14 assessment of drought impact on forests act. 5.2_bardarska14 assessment of drought impact on forests act. 5.2_bardarska
14 assessment of drought impact on forests act. 5.2_bardarska
 
SustSan workshop: Challenges and Opportunities by Tandiwe Erlmann
SustSan workshop: Challenges and Opportunities by Tandiwe ErlmannSustSan workshop: Challenges and Opportunities by Tandiwe Erlmann
SustSan workshop: Challenges and Opportunities by Tandiwe Erlmann
 
SustSan workshop: Manual for selection of system for water-waste purification...
SustSan workshop: Manual for selection of system for water-waste purification...SustSan workshop: Manual for selection of system for water-waste purification...
SustSan workshop: Manual for selection of system for water-waste purification...
 
IDMP CEE 2nd workshop: The global IDMPActivity by Frederik Pischke
IDMP CEE 2nd workshop: The global IDMPActivity by Frederik PischkeIDMP CEE 2nd workshop: The global IDMPActivity by Frederik Pischke
IDMP CEE 2nd workshop: The global IDMPActivity by Frederik Pischke
 
9 remote sensing act.5.5_tamasz
9 remote sensing act.5.5_tamasz9 remote sensing act.5.5_tamasz
9 remote sensing act.5.5_tamasz
 
Sustainable Sanitation in Central and Eastern Europe by Richard Muller
Sustainable Sanitation in Central and Eastern Europe by Richard MullerSustainable Sanitation in Central and Eastern Europe by Richard Muller
Sustainable Sanitation in Central and Eastern Europe by Richard Muller
 
GWP CEE Integrated Drought Management Programme by Sabina Bokal
GWP CEE Integrated Drought Management Programme by Sabina BokalGWP CEE Integrated Drought Management Programme by Sabina Bokal
GWP CEE Integrated Drought Management Programme by Sabina Bokal
 

Semelhante a O auth无痛入门指南

Authorization with oAuth
Authorization with oAuthAuthorization with oAuth
Authorization with oAuthVivastream
 
O auth how_to
O auth how_toO auth how_to
O auth how_tovivaqa
 
OAuth 2 at Webvisions
OAuth 2 at WebvisionsOAuth 2 at Webvisions
OAuth 2 at WebvisionsAaron Parecki
 
The Current State of OAuth 2
The Current State of OAuth 2The Current State of OAuth 2
The Current State of OAuth 2Aaron Parecki
 
Implementing OAuth
Implementing OAuthImplementing OAuth
Implementing OAuthleahculver
 
Oauth tutorial
Oauth tutorialOauth tutorial
Oauth tutorial乐费 胡
 
OAuth - Don’t Throw the Baby Out with the Bathwater
OAuth - Don’t Throw the Baby Out with the Bathwater OAuth - Don’t Throw the Baby Out with the Bathwater
OAuth - Don’t Throw the Baby Out with the Bathwater Apigee | Google Cloud
 

Semelhante a O auth无痛入门指南 (10)

Authorization with oAuth
Authorization with oAuthAuthorization with oAuth
Authorization with oAuth
 
O auth how_to
O auth how_toO auth how_to
O auth how_to
 
OAuth 2 at Webvisions
OAuth 2 at WebvisionsOAuth 2 at Webvisions
OAuth 2 at Webvisions
 
MQTT security
MQTT securityMQTT security
MQTT security
 
The Current State of OAuth 2
The Current State of OAuth 2The Current State of OAuth 2
The Current State of OAuth 2
 
Implementing OAuth
Implementing OAuthImplementing OAuth
Implementing OAuth
 
Some OAuth love
Some OAuth loveSome OAuth love
Some OAuth love
 
Secure Webservices
Secure WebservicesSecure Webservices
Secure Webservices
 
Oauth tutorial
Oauth tutorialOauth tutorial
Oauth tutorial
 
OAuth - Don’t Throw the Baby Out with the Bathwater
OAuth - Don’t Throw the Baby Out with the Bathwater OAuth - Don’t Throw the Baby Out with the Bathwater
OAuth - Don’t Throw the Baby Out with the Bathwater
 

O auth无痛入门指南

  • 1. 51-21-9002 南 指 门 入 痛 无htuAo est's blog Mobilis in Mobili 04 oAuth Web, programming #1 yeeyan , #2 rollingcode.org oAuth http://oauth.net/core/1.0/ oAuth oAuth oAuth 3 1. 2. / A 3. B oAuth senario A B B A Flickr xiaonei.com SNS Hotmail 1. Ctrl+C, Ctrl+V 2. —— 3. ID —— oAuth B URL A A B Yes/No Yes A B / 3 1. 2 B A Obtaining an Unauthorized Request Token “ ” A 2. A / Obtaining User Authorization 3. B B / A Obtaining an Access Token “ (Access Token)” “ ” B A A oauth_token oauth_token oauth_token_secret other_parameters oauth_token oauth_token oAuth 108336/sevihcra/nc.2oy.evitaitini 4/1
  • 2. 51-21-9002 南 指 门 入 痛 无htuAo Technically 2 oAuth Consumer Request Parameters oAuth 1.0 5.2 oAuth 3 1. HTTP GET URL ? iframe img XSS 2. HTTP POST Content-Type 3. HTTP OAuth HTTP Authorization Scheme “ ” Signature “ ” oAuth 3 HMAC-SHA1, RSA-SHA1 PLAINTEXT oAuth 1. HTTP GET, POST HEAD 2. HTTP URL 3. oAuth 3 & hmac RSA oAuth “ ” PLAINTEXT oAuth secret key oAuth B B A douban Douban API Key Douban API Key Douban API Key oAuth “ ” “ ” B A SHA1, RSA-SHA1 PLAINTEXT oAuth timestamp google library oAuth 108336/sevihcra/nc.2oy.evitaitini 4/2
  • 3. 51-21-9002 南 指 门 入 痛 无htuAo oAuth Web “ (authorization)” oAuth Web widget javascript webapps oAuth est cookiejar + Flash LSO oAuth oAuth / / API Digg, Jaiku, Flickr, Ma.gnolia, Plaxo, Pownce, Twitter, Google, Yahoo, and others soon to follow oAuth 1.0 email B Douban oAuth oAuth A X Y Z 9 Responses to “oAuth ” 1. Pan Says: 11th, 2009 at 14:58 Reply 2. Says: 20th, 2009 at 19:35 Reply 3. Says: 20th, 2009 at 19:37 Reply 4. 3D Says: 20th, 2009 at 19:37 Reply 5. sunny Says: 12th, 2009 at 11:39 Reply 6. kkppccdd Says: 14th, 2009 at 13:32 Reply 7. rocyhua Says: 3rd, 2009 at 15:05 108336/sevihcra/nc.2oy.evitaitini 4/3
  • 4. 51-21-9002 南 指 门 入 痛 无htuAo Reply 8. liuxingyuyuni Says: 9th, 2009 at 13:30 Reply 9. Symphony Says: 29th, 2009 at 14:28 Reply 108336/sevihcra/nc.2oy.evitaitini 4/4