想搭建一个开放平台,要用oauth.之前问过很多,看过很多,对于没有学过编程的人来讲没看进去.
直到结合三个文件.httpblog.csdn.netStarParkerarticledetails19576511,命名规范,oauth1.0httpmy.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/19576511consumer(app) server(openpplantform) user(resourse owner)1.create_consumer(consumer_key,secret)<-server/create_consumer.php 2.request_token,secretclient/get_request_token.php->server/request_token.phpserver/authorize.php 3.access_token,secretclient/get_access_token.php->server/access_token.php4.apiclient/get_api.php->server/api.phpoauth1 个人理解 //原文件丢失,重写author:laohurhttp://my.oschina.net/phptiger86/blog/113262讲的是client,对应文件名如下step1->get_request_tokenstep2->get_access_tokenstep3->get_apiconsumer(app) server(openpplantform) user(resourse owner)0.(server) addclient1.(client) get_request_token-> (server)authorize (client)authorize_token<-user authorize2.(client,authorized_token) get_access_token->access_token (client)<-(server,access_token)3.(client,access_token)->(server)api (client)<-(server,api,serource)想自学编程,发现,真的很难.能干什么,在干什么...还是做我的财务管理吧