jsoftb / auth0
CakePHP 3.x的Auth0认证对象
dev-master
2016-08-02 22:33 UTC
Requires
- php: >=5.4.16
- auth0/auth0-php: ~3.0
- cakephp/cakephp: ~3.1
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-14 18:58:30 UTC
README
Cakephp 3.x的Auth0认证对象
有关auth0服务的更多信息:https://auth0.com/
安装
将"jsoftb/auth0": "dev-master"添加到您的composer.json文件中,然后运行composer update
配置
打开您的AppController,并在initialize函数内部
$this->loadComponent('Auth', [
'authenticate' => [
'Auth0.Auth0' => [
'domain' => '<domain_value_provided_by_auth0>',
'client_id' => '<client_id_value_provided_by_auth0>',
'client_secret' => '<client_secret_value_provided_by_auth0>',
'redirect_uri' => '<redirect_uri_value_provided_by_auth0>'
]
],
]);
遵循Auth0中设置登录页面的说明