+xAre you using the ComponentSpace.Saml2.Metadata.Export.IConfigurationToMetadata interface? The default implementation of this interface retrieves SAML configuration through the ISamlConfigurationResolver interface. The ExportMetadata project demonstrates the use of IConfigurationToMetadata. Thanks for your response. In My Startup.cs I have services.AddSaml(); services.AddScoped<ISamlConfigurationResolver, MySaml2ConfigResolver>(); (In the MySaml2ConfigResolver I have both GetLocalServiceProviderConfigurationAsync and GetPartnerIdentityProviderConfigurationAsync) In my metadata controller I then pull in the IConfigurationToMetadata via DI (and set to _metadataConfig) Unfortunately when I call var exportedMetadata = await _metadataConfig.ExportAsync(clientId.ToString());
I get...
ComponentSpace.Saml2.Exceptions.SamlException: A local identity or service provider name is required for the SAML entity ID.
However the GetLocalServiceProviderConfigurationAsync is never called.
|