OmniAuth SAML正在以以前经过身份验证的用户身份登录



我已经用ADFS为SAML配置了GitLab CE应用程序。我的IdP重定向,我使用SSO身份登录GitLab。它自动创建一个用户。然而,当另一个用户尝试登录时,他们会以我的身份登录

gitlab_rails[‘omniauth_enabled’] = true
gitlab_rails['omniauth_allow_single_sign_on'] = ['saml']
gitlab_rails['omniauth_block_auto_created_users'] = false
gitlab_rails['omniauth_auto_link_saml_user'] = true
gitlab_rails['omniauth_providers'] = [
{
name: 'saml',
args: {
assertion_consumer_service_url: 
'https://<domain>/users/auth/saml/callback',
idp_cert_fingerprint: '<fingerprint>',
idp_sso_target_url: 'https://<domain>/adfs/ls/',
issuer: 'https://<domain>/adfs/services/trust',
name_identifier_format: 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent'
},
label: 'SAML Login' # optional label for SAML login button, defaults to &quot;Saml&quot;
}
]

有什么想法吗?

谢谢!

已解决-我在测试中添加了以下内容:attribute_statements:{email:[]http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress']},我删除了这个,我的ADFS负责人在他的一端说"这是一个索赔转换不匹配"。

最新更新