Download the PHP package boolw/baidusocialite without Composer
On this page you can find all versions of the php package boolw/baidusocialite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download boolw/baidusocialite
More information about boolw/baidusocialite
Files in boolw/baidusocialite
Download boolw/baidusocialite
More information about boolw/baidusocialite
Files in boolw/baidusocialite
Vendor boolw
Package baidusocialite
Short Description openapi.baidu.com OAuth2 Provider for Laravel Socialite
License MIT
Package baidusocialite
Short Description openapi.baidu.com OAuth2 Provider for Laravel Socialite
License MIT
Please rate this library. Is it a good library?
Informations about the package baidusocialite
baidusocialite
openapi.baidu.com OAuth2 Provider for Laravel Socialite
百度认证(Baidu)
使用如下Composer命令安装依赖:
composer require boolw/baidusocialite
注册服务提供者(同时注释掉原有的Socialite提供者):
添加Socialite门面(如果已有略过本操作):
添加事件监听器(App/Providers/EventServiceProvider):
去新浪微博开放平台(https://openapi.baidu.com/)创建一个新的网站应用以获取相应的App Key和App Secret。需要注意的是不比GitHub,新浪微博需要创建的网站应用对应网站在外网可以访问。
然后在配置文件app/services.php中添加weibo配置项:
接下来我们要对AuthController略作修改:
以支持多种不同认证提供者的切换。
最后需要修改认证路由规则如下:
至此就可以在浏览器中访问http://laravel.app:8000/auth/baidu进行测试了。
All versions of baidusocialite with dependencies
PHP Build Version
Package Version
The package boolw/baidusocialite contains the following files
Loading the files please wait ....