{"id":18784939,"url":"https://github.com/wenbinye/oauth2-demo","last_synced_at":"2025-08-31T09:38:15.238Z","repository":{"id":7178209,"uuid":"8480154","full_name":"wenbinye/oauth2-demo","owner":"wenbinye","description":"OAuth2 Server and Client Demo","archived":false,"fork":false,"pushed_at":"2013-04-19T18:32:10.000Z","size":160,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T20:10:37.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wenbinye.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-28T13:59:09.000Z","updated_at":"2024-04-16T20:10:37.519Z","dependencies_parsed_at":"2022-08-19T21:51:22.003Z","dependency_job_id":null,"html_url":"https://github.com/wenbinye/oauth2-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenbinye%2Foauth2-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenbinye%2Foauth2-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenbinye%2Foauth2-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenbinye%2Foauth2-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wenbinye","download_url":"https://codeload.github.com/wenbinye/oauth2-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223588762,"owners_count":17169879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T20:44:30.383Z","updated_at":"2024-11-07T20:44:31.359Z","avatar_url":"https://github.com/wenbinye.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"OAuth2 服务器实现和客户端调用示例\n==========\n\n演示如何使用 [oauth-server-php][oauth-server-php] 搭建一个 oauth2 服务器，\n并使用 [PHP-OAuth2][PHP-OAuth2] 进行验证并调用服务器的接口。\n\n使用 [Composer][Composer] 可以快速安装依赖库：\n\n    $ git clone git://github.com/wenbinye/oauth2-demo.git\n    $ cd oauth2-demo\n    $ curl -s http://getcomposer.org/installer | php\n    $ composer.phar install\n\n配置好 Web 服务器后在浏览器中打开 *http://your-host/index.php/client/index*\n\n为了区分 oauth 客户端和 oauth 服务器，可以通过修改本机 host 文件，添加一个虚拟域名：\n\n    your.server.ip oauth.host\n    \n然后修改 *protected/config/main.php* 中 *params*:\n```php\n        'oauthServerHost' =\u003e 'oauth.host'\n```\n\n[Composer]: http://getcomposer.org/\n[oauth-server-php]: https://github.com/bshaffer/oauth2-server-php\n[PHP-OAuth2]: https://github.com/adoy/PHP-OAuth2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenbinye%2Foauth2-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwenbinye%2Foauth2-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenbinye%2Foauth2-demo/lists"}