Azure B2C Custom Policy donot honor login prompt

Arslan Pervaiz 20 Reputation points
2024-04-22T06:53:23.44+00:00

I have B2C Custom Policy and it works great except only one issue.
If I pass login prompt then it doesnot work and shows select account but If same code is used against standard userflow then it works without any issue

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,898 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,561 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. James Hamil 21,851 Reputation points Microsoft Employee
    2024-04-23T20:25:16.7+00:00

    Hi @Arslan Pervaiz , can you please share your custom policy code so I can check it?

    To troubleshoot this issue, you can try the following steps:

    1. Check your custom policy XML file to ensure that the login prompt is configured correctly. You can refer to the Azure AD B2C custom policy documentation for more information on how to configure the login prompt.
    2. Check if there are any errors in your custom policy XML file. You can use the Azure AD B2C policy validator to validate your custom policy XML file and identify any errors.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    0 comments No comments

  2. Arslan Pervaiz 20 Reputation points
    2024-04-23T20:36:35.6133333+00:00

    Hi James,

    Thanks for your reply. I have attached the custom policies for you and UserJourney I am using is "SignInIRISNDT"

    Please let me know if you need anything else to look into further.

    I want to support login and select account prompt both in my custom policy and also want to get tfp claim but some how its not being returned as output claim in my relayingparty.

    Thanks alot!

    SIGNIN_IRISNDT.xml

    TRUSTFRAMEWORKEXTENSION.xml