Error during metadata export

We are currently experiencing an issue after upgrading from 2.1.0 to 2.7.0, on attempting to export the metadata _configurationToMetadata.ExportAsync() we get the following error:

ComponentSpace.Saml2.Exceptions.SamlException: ‘The SAML configuration couldn’t be exported.’
Inner Exception SamlException: A local identity or service provider name is required for the SAML entity ID.

Can someone kindly help?



This error indicates that your SAML configuration doesn’t include a local identity provider or service provider configuration or its name is missing.

Please check that your SAML configuration is valid.

If there’s still an issue, please enable SAML trace and send the generated log file as an email attachment to support@componentspace.com mentioning your forum post.

https://www.componentspace.com/forums/7936/Enabling-SAML-Trace

Also include the SAML configuration you’re attempting to export with any passwords removed.

[quote]
ComponentSpace - 5/19/2022
This error indicates that your SAML configuration doesn't include a local identity provider or service provider configuration or its name is missing.

Please check that your SAML configuration is valid.

If there's still an issue, please enable SAML trace and send the generated log file as an email attachment to support@componentspace.com mentioning your forum post.

https://www.componentspace.com/forums/7936/Enabling-SAML-Trace

Also include the SAML configuration you're attempting to export with any passwords removed.
[/quote]

Hello there, thanks for the reply.

The issue turned out to be something else related to the custom resolver - managed to address it, thanks.

Thanks for the update.

[quote]
ComponentSpace - 5/23/2022
Thanks for the update.
[/quote]

I just wanted to mention that the issue turned out to be the same as the one in this thread https://www.componentspace.com/Forums/10459/Using-IConfigResolver-to-generate-Metadata?Keywords=Triggering%20Twice

Would it be possible to add it in the documentation to be more explicit that if a custom resolver is used, then there is additional methods to be implemented ? https://www.componentspace.com/documentation/saml-for-asp-net-core/ComponentSpace%20SAML%20for%20ASP.NET%20Core%20Configuration%20Guide.pdf makes no mention of it

Thanks !

Thanks for the feedback.

I’ll see that our documentation is improved in this area.