I have setup a SignUp with email invitation flow as described here
The id_token_hint
looks like this:
{
"alg": "RS256",
"kid": "00BFDFB35FF5994E543B5D8CE74B37FC5E702294",
"x5t": "AL_fs1_1mU5UO12M50s3_F5wIpQ",
"typ": "JWT"
}.{
"name": "Name",
"email": "email@domain.com",
"roles": [
"role1",
"role2",
"role3"
],
"nbf": 1651067986,
"exp": 1651068286,
"iss": "xx",
"aud": "xx"
}.[Signature]
and I try to extract the roles to a stringCollection
Claim, so that I can use it later. The claim is defined like this:
<ClaimType Id="InvitationRoles">
<DisplayName>Invitation Roles</DisplayName>
<DataType>stringCollection</DataType>
<UserHelpText>Invitation Roles</UserHelpText>
</ClaimType>
I added the following to the IdTokenHint_ExtractClaims
ClaimsProvider TechnicalProfile:
<OutputClaim ClaimTypeReferenceId="InvitationRoles" PartnerClaimType="roles"/>
and this to the RelyingParty
TechnicalProfile PolicyProfile:
<InputClaim ClaimTypeReferenceId="InvitationRoles" PartnerClaimType="roles" />
But I only get the first value of the array shown in the Application Insights Debug Logging:
Claims
InvitationRoles: [role1]
ReadOnlyEmail: email@domain.com
email: email@domain.com
Do I miss something or is this not supported?