"Message": "The value must not be null or white space.\r\nParameter name: serviceProviderMetadata",

Sai Prasad 5 Reputation points
2023-11-01T18:17:18.5266667+00:00

Trying to set up a SSO from an external IDP initiated and Azure B2C as SP. Azure b2c is unable to read metadata. Any assistance is appreciated. Thanks!

 <OrchestrationStep Order="1" Type="ClaimsExchange" ContentDefinitionReferenceId="api.selfasserted">
    
    <ClaimsProviderSelections>
    <ClaimsProviderSelection TargetClaimsExchangeId="AppExchange" />
    </ClaimsProviderSelections> 
    
    <ClaimsExchanges>
        <ClaimsExchange Id="AppExchange" TechnicalProfileReferenceId="App-SAML2" />
      </ClaimsExchanges>
    </OrchestrationStep>

 

    <OrchestrationStep Order="2" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="Saml2AssertionIssuer" />

Receiving an error saying. I have exchanged.

    "CorrelationId": "f23d9abc-b4ad-47ba-adb0-480215fe57ef"
  {
    "Kind": "FatalException",
    "Content": {
      "Time": "5:45 PM",
      "Exception": {
        "Kind": "Handled",
        "HResult": "80070057",
        "Message": "The value must not be null or white space.\r\nParameter name: serviceProviderMetadata",
        "Data": {}
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,775 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,541 Reputation points Microsoft Employee
    2023-11-01T19:49:32.9733333+00:00

    @Sai Prasad

    Thank you for your post!

    Error Message:

    "The value must not be null or white space.\r\nParameter name: serviceProviderMetadata"

    I understand that you're trying to set up a Single Sign-On (SSO) from an external IDP initiated and Azure B2C as SP, but you're running into the error message above. Looking at the error you're receiving, it's indicating that the value for the serviceProviderMetadata parameter is null or whitespace.

    To resolve your issue, please ensure that the serviceProviderMetadata parameter is properly configured with the metadata endpoint URL of your external IDP. You should be able to check the technical profile referenced by the App-SAML2 technical profile to ensure that the serviceProviderMetadata parameter is properly configured.

    • If you're still having issues, can you share the documentation that you're following so I can take a closer look into your issue?

    Metadata exchange example:

    Each SAML identity provider has different steps to expose and set the service provider. In this case you should be able to reference the identity provider’s documentation for guidance on how to set the serviceProviderMetadata parameter.

    The following example shows a URL address to the SAML metadata of an Azure AD B2C technical profile:

    https://your-tenant-name.b2clogin.com/your-tenant-name.onmicrosoft.com/your-policy/samlp/metadata?idptp=your-technical-profile
    

    Additional Links:

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.


    If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.