Azure AD B2C SAML - Assertion Consumer Service URL Issue

Kirk Potter 0 Reputation points
2025-05-01T12:30:11.5333333+00:00

There wasn't an option for tagging Azure AD B2C so I've had to use the new Entra External ID to tag this question.

We're testing a Azure AD B2C SAML sign-up/sign-in policy using the SAML test application (https://samltestapp2.azurewebsites.net/) we are getting an error that the B2C Application does not have the assertion consumer service URL https://samltestapp2.azurewebsites.net/SP/AssertionConsumer

The Application has this as both a reply URL and also in the manifest it has the metadata URL specified under "samlMetadataUrl" as https://samltestapp2.azurewebsites.net/Metadata

The Metadata URL clearly has the assertion consumer service URL specified.

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

1 answer

Sort by: Most helpful
  1. Vigneshwar Duvva 485 Reputation points Microsoft External Staff
    2025-05-06T09:25:07.6233333+00:00

    Hello @Kirk Potter

    As per the error you're getting that the B2C Application does not have the assertion consumer service URL. Yes, it is a prerequisite to have a publicly accessible metadata endpoint as per: https://learn.microsoft.com/en-us/azure/active-directory-b2c/saml-service-provider?tabs=windows&pivots=b2c-custom-policy#prerequisites.

    Within SAML Application Manifest, you'd set the url property of replyUrlsWithType to the ASC URL as shown in the following JSON Example:

    "replyUrlsWithType": [
    {"url":"https://samltestapp2.azurewebsites.net/SP/AssertionConsumer",
    "type":"Web"
    }
    ],

    Add the "https://samltestapp2.azurewebsites.net/SP/AssertionConsumer" in Application manifest

    Example:
    User's image Hope this helps. Do let us know if you have any further queries

    Following up to see if the above answer was helpful.

    If this answers your query, do click `Accept Answer` and `Yes'


Your answer

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