Open cburatto opened 1 year ago
Note:
If you move the ClaimsProvider
from the BuildingBlocks
element to the sibling ClaimsProviders
element , the policy is uploaded without errors. You must make sure ClaimTypeReferenceId="signInNames.emailAddress"
matches the ClaimType defined in the Base (in my case and probably others, this is email
)
<InputClaim ClaimTypeReferenceId="signInNames.emailAddress"/>
...
<OutputClaim ClaimTypeReferenceId="signInNames.emailAddress" PartnerClaimType="email"/>
must be
<InputClaim ClaimTypeReferenceId="email"/>
...
<OutputClaim ClaimTypeReferenceId="email" PartnerClaimType="email"/>
However, I am still not sure this change will work and create the UserInfo endpoint corrrectly. I will update this issue accordingly.
This issue might not be related to this repo, but to the Azure Docs -- my apologies in advance if so:
I am following these instructions to add a UserInfo endpoint to my OID custom policy https://learn.microsoft.com/en-us/azure/active-directory-b2c/userinfo-endpoint?pivots=b2c-custom-policy
Specifically
Add the Token Issuer technical profile Open the TrustFrameworkExtensions.xml file.
If it doesn't exist already, add a ClaimsProvider element and its child elements as the first element under the BuildingBlocks element.
Add the following claims provider:
My final
BuildingBlocks
looks like this:I upload the Base and Localization XML without problems, but this one fails with error:
This fails with
ClaimsProviders
orClaimsProvider
as child ofBuildingBlocks
.So it seems the Azure Docs are outdated? If so, can anyone point me to the documentation and steps to add a UserInfo endpoint?