...built your oauth server by yii。 ...
- oauth/authorize 请求用户授权Token
- oauth/access_token 获取授权过的Request Token
- oauth/access_token 获取授权过的Access Token
...Yii 1.1.8 or above ...
...1. config the oauth server ...
// application components 'components'=>array( ...... 'urlManager'=>array( //it must be path model 'urlFormat'=>'path', //hidden index.php 'showScriptName'=>false, ), ...... ), // application modules 'modules'=>array( ...... 'api'=>array( 'connectionString' => 'mysql:host=localhost;port=3306;dbname=yiisns', 'username' => 'root', 'password' => '111111', ), ...... ),
...2. install oauth.sql (locate:modules\api\data\oauth.sql)...
...3. create you oauth store accout at “oauth_server_registry” ...
INSERT INTO `oauth_server_registry` (`osr_id`, `osr_usa_id_ref`, `osr_consumer_key`, `osr_consumer_secret`, `osr_enabled`, `osr_status`, `osr_requester_name`, `osr_requester_email`, `osr_callback_uri`, `osr_application_uri`, `osr_application_title`, `osr_application_descr`, `osr_application_notes`, `osr_application_type`, `osr_application_commercial`, `osr_issue_date`, `osr_timestamp`) VALUES (1, 1, 'admin', '123456', 1, 'active', 'biner', 'huanghuibin@gmail.com', 'b.php', 'a.php', 'oauth测试标题', '这是个非常helloworld的描述', '笔记?', 'system', 0, '2011-09-20 17:35:50', '2011-09-20 17:35:50'),
...external resources for this extension...
Total 2 comments
hi : could you kindly give us more description of usage ? I am interested to this module very much . you can create an thread in china forum .(你能多给下如何使用此模块的描述吗 可以在中文区开一个话题的 最好用英文描述 不然会投负票的 :) )
Hi! this extension looks great! Could there be the possibility of an English version of the documentation? Thank you very much in advance!
Leave a comment
Please login to leave your comment.