搭建oauth-server

來源:互聯網
上載者:User

標籤:blog   http   檔案   os   art   html   

想搭建一個開放平台,要用oauth.之前問過很多,看過很多,對於沒有學過編程的人來講沒看進去.
直到結合三個檔案.httpblog.csdn.netStarParkerarticledetails19576511,命名規範,oauth1.0
httpmy.oschina.netphptiger86blog113262http://www.huiyi8.com/moban/html模板
與httpwww.lwxshow.comthread-40-1-1.html,命名挺奇葩的,
上面兩個是基於httpscode.google.compoauth2-php這個包含豐富文檔.
教訓自己作圖.我看到的圖都講的有偏差.(互動以會話形式進行.一個會話應該是一個請求,一個返回.我見過的所有流程圖都是混著的.)

oauth1 個人理解
author:laohur
reference:http://blog.csdn.net/starparker/article/details/19576511

consumer(app) server(openpplantform) user(resourse owner)

1.create_consumer
(consumer_key,secret)<-server/create_consumer.php 

2.request_token,secret
client/get_request_token.php->server/request_token.php
server/authorize.php 

3.access_token,secret
client/get_access_token.php->server/access_token.php

4.api
client/get_api.php->server/api.php

oauth1 個人理解  //原檔案丟失,重寫
author:laohur
http://my.oschina.net/phptiger86/blog/113262
講的是client,對應檔案名稱如下
step1->get_request_token
step2->get_access_token
step3->get_api

consumer(app) server(openpplantform) user(resourse owner)
0.(server) addclient
1.(client) get_request_token-> (server)authorize 
     (client)authorize_token<-user authorize
2.(client,authorized_token) get_access_token->access_token
         (client)<-(server,access_token)
3.(client,access_token)->(server)api
      (client)<-(server,api,serource)

想自學編程,發現,真的很難.能幹什麼,在幹什麼...還是做我的財務管理吧

   

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.