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?
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:
- Azure B2C what is serviceProviderMetadata? - Similar issue
- Define a SAML identity provider technical profile in an Azure Active Directory B2C custom policy
- Troubleshoot SAML-based single sign-on
- Debug SAML-based single sign-on to applications
- Single sign-on session providers in Azure Active Directory B2C
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.