OKTA is IdP and Shibboleth is SP in this setting. OKTA is passing attribute 'roles' something like idp_dev_SLAN_Power, idp_dev_SLAN_Admin, idp_dev_SLAN_account, etc
I am wondering if I can strip 'idp_dev_SLAN_' out when it takes this attribute.
Here is what I see in the current attribute-map.xml.
<Attribute id="roles" name="roles" nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" />
I feel like I can possibly do something with AttributeDecoder. any idea??
I think you are probably looking for the
Transform
type ofAttributeResolver
which:An example is given:
which transforms a
displayName
into two attributesgivenName
andsn
. But I'm certain you could build a regular expression to grabidp_dev_SLAN_
for the various inbound elements and map those to 1 or more attributes of your desire.