glue-agency / craft-glue-auth
使用您的Glue Google账号登录任何CMS
5.0.1
2024-05-30 14:39 UTC
Requires
- php: ^8.2
- craftcms/cms: ^5.0.0
- illuminate/encryption: ^10.0
- nesbot/carbon: ^2.68.1
- spatie/url: ^2.2.0
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