Try with this below sample on Script claim transformation where “dk:gov:saml:attribute/RidNumberIdentifier” is base64 encoded and then replace the non-encoded value.
1 2 3 4 5 6 |
{ if (Exist("dk:gov:saml:attribute/RidNumberIdentifier")) var getcurrentvalue= GetClaim("dk:gov:saml:attribute/RidNumberIdentifier"); Issue("dk:gov:saml:attribute/RidNumberIdentifier", ToBase64(getcurrentvalue)); Remove("dk:gov:saml:attribute/RidNumberIdentifier",getcurrentvalue); } |