natureshadow/user_identities_oidc
最新稳定版本:1.0.2
Composer 安装命令:
composer require natureshadow/user_identities_oidc
包简介
Populates a user's identities from their userinfo after OAuth/OIDC login
README 文档
README
This plugin synchronizes mail identities from information provided by the OpenID Connect / OAuth2 provider used for login.
Requirements
The OIDC provider must provide an array of user identity records under some claim, e.g.:
{
"mail_identities": [
{
"name": "Kanga Roo",
"email": "roo@kanga.example.com"
}
]
}
Roundcube configuration
Roundcube must be configured for OAuth2 authentication
with a known userinfo_endpoint (either explicitly, or from a discovery document).
The OAuth scopes list must contain the scope allowing access to the mail identities
claim, which also must be configured:
// Generic OAuth / OIDC configuration
$config['oauth_provider'] = 'generic';
$config['oauth_provider_name'] = 'example';
$config['oauth_client_id'] = 'xxx';
$config['oauth_client_secret'] = 'xxx';
$config['oauth_config_uri'] = 'https://example.com/.well-known/openid-configuration';
// Include the scope providing the mail_identities claim
$config['oauth_scope'] = 'openid mail_identities';
// Enable synchronization on login
$config['user_identities_oidc_onlogin'] = true;
$config['user_identities_oidc_claim'] = 'mail_identities';
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2025-07-07