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 Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,951 Reputation points Moderator
    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.