leggett / auth0
CakePHP 3.x 的 Auth0 认证对象
dev-master
2017-05-22 12:40 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-20 19:26:10 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 中设置登录页面的说明