Azure ADB2C | Custom Policies

Abhay Chandramouli 966 Reputation points
2022-10-12T12:28:54.74+00:00

Hi,
I am using the Seamless Migration custom policies..

I was exploring if there will be a way to obtain the auth code inside the custom policy ? i.e in a claim ?

I have a scneario where I need to call another api from inside the custom policy using the adb2c authcode

Thanks

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,684 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay-MSFT 16,516 Reputation points Microsoft Employee
    2022-10-19T11:00:51.727+00:00

    Hello @Abhay Chandramouli ,

    In order to use auth code as input claim you could try the following:

    • In base XML look for Identity provider technical profile and set "response_types">code</Item>
    • Then input this claim in rest api techincal profile <InputClaim ClaimTypeReferenceId="verificationCode" PartnerClaimType="code" />

    Do let me know if you have any further queries

    Thanks,
    Akshay Kaushik

    Please "Accept the answer" and "Upvote" if the suggestion works as per your business need. This will help us and others in the community as well.

    0 comments No comments