leggett/auth0

CakePHP 3.x 的 Auth0 认证对象

维护者

详细信息

github.com/itdreamteam/auth0

源代码

安装: 118

依赖项: 0

建议者: 0

安全性: 0

星级: 0

关注者: 4

分支: 1

类型:cakephp-plugin

dev-master 2017-05-22 12:40 UTC

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 中设置登录页面的说明