Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community
SOLVED

Azure B2C and being able to use email/emails attribute from the claim

Deleted
Not applicable

Hi,

We're currently working through using Azure B2C as an IdP for Identity Server 4.0 as a federation gateway and then to ADFS to access an internal relying party trust configured for a specific use case. We've got all of the configuration in place but we're having issue with trying to get the email attribute from the B2C token flowing through as expected.

 

In Azure B2C, this comes through via the claim attribute "emails" as it's a string collection type and have spent hours running through various options from online ideas to no avail.

 

Thanks in advance if anyone has any idea's on this issue.

1 Reply
best response
Solution

Luckily this issue is now resolved as using the Identity Server Profile Service http://docs.identityserver.io/en/release/reference/profileservice.html allowed for us to "Transform" the incoming claims attribute "emails" to be sent through in the JWT as "email" as required.

1 best response

Accepted Solutions
best response
Solution

Luckily this issue is now resolved as using the Identity Server Profile Service http://docs.identityserver.io/en/release/reference/profileservice.html allowed for us to "Transform" the incoming claims attribute "emails" to be sent through in the JWT as "email" as required.

View solution in original post