搭建oauth-server

想搭建一个开放平台,要用oauth.之前问过很多,看过很多,对于没有学过编程的人来讲没看进去.
直到结合三个文件.httpblog.csdn.netStarParkerarticledetails19576511,命名规范,oauth1.0
httpmy.oschina.netphptiger86blog113262
与httpwww.lwxshow.comthread-40-1-1.html,命名挺奇葩的,
上面两个是基于httpscode.google.compoauth2-php这个包含丰富文档.
教训自己作图.我看到的图都讲的有偏差.(交互以会话形式进行.一个会话应该是一个请求,一个返回.我见过的所有流程图都是混着的.)

oauth1 个人理解
author:laohur http://www.huiyi8.com/moban/网页模板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)

想自学编程,发现,真的很难.能干什么,在干什么...还是做我的财务管理吧


你可能感兴趣的:(server,网页,命名,流程图,开放平台)