Skip to content
4 changes: 2 additions & 2 deletions app/services/attribute_asserter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def default_attrs
{
uuid: {
getter: uuid_getter_function,
name_format: Saml::XML::Namespaces::Formats::NameId::PERSISTENT,
name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:basic',
name_id_format: Saml::XML::Namespaces::Formats::NameId::PERSISTENT,
},
}
Expand Down Expand Up @@ -75,7 +75,7 @@ def attribute_getter_function_ascii(attr)
def add_email(attrs)
attrs[:email] = {
getter: :email,
name_format: Saml::XML::Namespaces::Formats::NameId::EMAIL_ADDRESS,
name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:basic',
name_id_format: Saml::XML::Namespaces::Formats::NameId::EMAIL_ADDRESS,
}
end
Expand Down
4 changes: 2 additions & 2 deletions spec/controllers/saml_idp_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@

expect(email.name).to eq('Attribute')
expect(email['Name']).to eq('email')
expect(email['NameFormat']).to eq(Saml::XML::Namespaces::Formats::NameId::EMAIL_ADDRESS)
expect(email['NameFormat']).to eq('urn:oasis:names:tc:SAML:2.0:attrname-format:basic')
expect(email['FriendlyName']).to eq('email')
end

Expand All @@ -878,7 +878,7 @@

expect(uuid.name).to eq('Attribute')
expect(uuid['Name']).to eq('uuid')
expect(uuid['NameFormat']).to eq(Saml::XML::Namespaces::Formats::NameId::PERSISTENT)
expect(uuid['NameFormat']).to eq('urn:oasis:names:tc:SAML:2.0:attrname-format:basic')
expect(uuid['FriendlyName']).to eq('uuid')
end

Expand Down