Closed denniscoorn closed 7 years ago
Guess having them all rather then none would be ok for most users as default behavior. Only problem I could see with some huge attribute values, but in that case users would have to make their own attribute mapper, or we eventually extend this simple one with exclude list. Thanks
I've created a
SimpleAttributeMapper
that maps allAttribute
values from allAttributeStatement
objects within allAssertion
objects to a single array of attributes.A new service
lightsaml_sp.attribute_mapper.simple
is defined and will be set as default value for the 'attribute_mapper' at the security configuration.I've also added a
SimpleAttributeMapperTest
to guarantee the expected behavior of the mapper. This test also clearly demonstrate how the mapper handles/merges values when the name of an attribute already exists in the constructed attribute map.Would like to know what you think of it!