replace method in AttributeDefinition "ScriptedAttribute" getValues()
Nate Klingenstein
ndk at signet.id
Mon Jan 25 22:22:11 UTC 2021
Jehan,
Is there a reason you wouldn't just use a Mapped AttributeDefinition with regular expressions?
Anyway, I'm not aware of a way to change or remove attribute values in the ScriptedAttribute definition. I don't see a way in the quick read of the code.
https://git.shibboleth.net/view/?p=java-identity-provider.git;a=blob;f=idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/ad/impl/ScriptedIdPAttributeImpl.java
If you need a ScriptedAttribute for a specific reason, you could easily remove values in the attribute filter by a value match, or just use a new name for the attribute that you're adding the corrected value to, which will start as a null set.
Hope this is right,
Nate.
More information about the users
mailing list