Hi,
I’m trying to configure external groups for SAML OmniAuth Provider as documented at SAML SSO for self-managed GitLab instances | GitLab but it seems not to work. I would like to use the eduPersonAffiliation attribute as groups_attribute, but our IdP returns attribute statements using the URI name format. So I’ve set the groups_attribute to urn:oid:1.3.6.1.4.1.5923.1.1.1.1. Below are all relevant SAML settings used. Users with affiliation “affiliate” should be marked as external user, but nothing happens. No errors are given either.
request_attributes: [
{
name: "urn:oid:0.9.2342.19200300.100.1.3",
name_format: "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
friendly_name: 'mail'
},
{
name: "urn:oid:2.5.4.4",
name_format: "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
friendly_name: 'sn'
},
{
name: "urn:oid:2.5.4.42",
name_format: "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
friendly_name: 'givenName'
},
{
name: "urn:oid:0.9.2342.19200300.100.1.1",
name_format: "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
friendly_name: 'uid'
},
{
name: "urn:oid:2.5.4.3",
name_format: "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
friendly_name: 'cn'
},
{
name: "urn:oid:1.3.6.1.4.1.5923.1.1.1.1",
name_format: "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
friendly_name: 'eduPersonAffiliation'
}
],
attribute_statements: {
email: ['mail','email','urn:oid:0.9.2342.19200300.100.1.3'],
name: ['cn','urn:oid:2.5.4.3'],
first_name: ['givenName','urn:oid:2.5.4.42'],
last_name: ['sn','urn:oid:2.5.4.4'],
nickname: ['uid','urn:oid:0.9.2342.19200300.100.1.1'],
groups: ['eduPersonAffiliation','urn:oid:1.3.6.1.4.1.5923.1.1.1.1']
},
groups_attribute: "urn:oid:1.3.6.1.4.1.5923.1.1.1.1",
external_groups: ["affiliate"]
Somebody knows how to configure external_groups using URI names?