onlime-roundcube / jwt-sso
用于单点登录(SSO)登录外部邮箱账户管理的Roundcube插件。
1.0.2
2021-02-01 11:23 UTC
Requires
- php: ^7.4 || ^8.0
- lcobucci/jwt: ^4.1
- roundcube/plugin-installer: >=0.2.0
This package is auto-updated.
Last update: 2024-08-29 06:01:40 UTC
README
要求
我只测试了此插件在以下环境中。其他设置可能幸运地也能工作。
- PHP: >=
7.4
- Roundcube:
1.4.x
安装
使用Composer安装此Roundcube插件(推荐)。前往您的ROUNDCUBE_HOME
(即Roundcube安装的根目录)并运行
$ composer require onlime-roundcube/jwt-sso --update-no-dev
Do you want to activate the plugin jwt_sso? [Y|n]
然后至少在plugins/jwt_sso/config.in.php
中更改以下内容
$config['jwt_sso_url'] = 'https://my.example.com/auth/sso-roundcube?token=%s';
$config['jwt_sso_key'] = '********************************';
注意:可以使用例如
openssl
生成base64编码的JWT密钥$ openssl rand -base64 32
如果您没有选择在composer require
中直接激活插件,请手动将jwt_sso
添加到Roundcube配置中的插件config/config.inc.php
$config['plugins'] = [
// some other plugins...
'jwt_sso', // <-- add this line
];
现在您可以在例如skins/elastic/templates/includes/menu.html
中集成SSO链接
<a class="button-settings" id="rcmbtn-sso" href="?_action=sso" target="_blank">
<span class="button-inner">Account</span>
</a>
待办事项
- [ ] 在菜单模板中使用
<roundcube:button ..>
而不是纯HTML - [ ] 此插件能否直接将账户按钮添加到任务菜单中?
许可证
本插件发布在GNU通用公共许可证版本3+下。
关于
项目托管在GitLab上。如果您发现错误,请使用项目的问题跟踪器。
onlime-roundcube/jwt-sso 由 Philip Iezzi 为 Onlime GmbH 编写。