glue-agency/craft-glue-auth

使用您的Glue Google账号登录任何CMS

安装数: 6,005

依赖项: 0

建议者: 0

安全性: 0

类型:craft-plugin

5.0.1 2024-05-30 14:39 UTC

README

此插件向Craft Admin登录页面添加了一个“G”按钮。这简化了登录由Glue-Agency设置的任何CMS。适用于本地和远程环境,使用Google OAuth代理。

要求

此插件需要Craft CMS 5.0.0或更高版本,以及PHP 8.2或更高版本。

安装

/config文件夹中创建一个名为glue-auth.php的文件,并使用以下配置

return [
    // This token is used to decrypt data sent
    // from the oAuth proxy
    'encryptionToken' => getenv('GLUE_AUTH_ENCRYPTION_TOKEN'),
];

最后将环境变量添加到您的.env和.env.example文件中。

使用Composer

打开您的终端,并运行以下命令

# Require the plugin through composer
composer require glue-agency/craft-glue-auth

# Install the plugin
php craft plugin/install glue-auth