Azure B2C Custom Policies OpenID Connect error

Pellegatti Andrea 1 Reputation point
2021-02-16T15:40:03.603+00:00

Hi,

I'm trying to set up Azure B2C Custom Policy to integrate with an OpenID IDP.
I set up all but getting the attached error.

the same IDP is working fine when used through the standard userFlows.

68695-idp-error.png

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,703 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,441 Reputation points
    2021-02-17T07:20:43.23+00:00

    Hello @Pellegatti Andrea · Thank you for reaching out.

    By tracking the request id, I found that the Reply URL in the authentication request is:

    https://repxxxxc.b2clogin.com/repxxxxc.onmicrosoft.com/b2c_1a_rossxxxxp_sxxxxn/oauth2/authresp  
    

    However, the Reply URLs (Redirect URIs) registered on the application: 65c44291-xxxx-xxxx-xxxx-ac1bcc6d5e26 are:

    https://repxxxxc.b2clogin.com/repxxxxc.onmicrosoft.com/oauth2/authresp  
    https://repxxxxxxxxxxxxxxes.b2clogin.com/repxxxxxxxxxxxxxxes.onmicrosoft.com/oauth2/authresp  
    

    To resolve the issue, make sure that the Reply URL in the authentication request is added to the application: 65c44291-xxxx-xxxx-xxxx-ac1bcc6d5e26.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.