Certificate Subject on saml.conf trhow exception

Hello

Got an issue here.
Version of the component 4.6

Try to use, according to the documentation, to load the certificate by it subject.

Using this configuration


<ServiceProvider

Name=Demo

Description=DemoSP

AssertionConsumerServiceUrl=~/Login.aspx>

<LocalCertificates>

<Certificate Subject=www.sp.com />

</LocalCertificates>

</ServiceProvider>




Throw this error


ComponentSpace.SAML2 Verbose: 0 : 9480/17: 05/02/2021 09:53:26: A schema validation error occurred in at line 0, column 0. L’attribut ‘Subject’ n’est pas déclaré.
ComponentSpace.SAML2 Verbose: 0 : 9480/17: 05/02/2021 09:53:26: Exception: ComponentSpace.SAML2.Exceptions.SAMLSchemaValidationException: One or more configuration XML schema validation errors occurred.
ComponentSpace.SAML2 Verbose: 0 : 9480/17: 05/02/2021 09:53:26: à ComponentSpace.SAML2.Exceptions.SAMLSchemaValidationException…ctor(String message, IList warnings, IList errors)
à ComponentSpace.SAML2.Configuration.SchemaValidator.ValidateConfiguration(XmlDocument xmlDocument)
à ComponentSpace.SAML2.Configuration.SAMLConfigurationFile.Load(String fileName)
à ComponentSpace.SAML2.SAMLController.Initialize()
à ComponentSpace.SAML2.InternalSAMLServiceProvider…ctor()
à ComponentSpace.SAML2.SAMLServiceProvider.InitiateSSO(HttpResponse httpResponse, String relayState, String partnerIdP)
à xxxxx.WebSite.Login.Page_Load(Object sender, EventArgs e) dans C:\Users\xxxxx\Desktop\xxxxx-Frontend\xxxxx.WebSite\Login.aspx.cs:ligne 69
à System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
à System.Web.UI.Control.OnLoad(EventArgs e)
à System.Web.UI.Adapters.ControlAdapter.OnLoad(EventArgs e)
à System.Web.UI.Control.LoadRecursive()
à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
à System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
à System.Web.UI.Page.ProcessRequest()
à System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
à System.Web.UI.Page.ProcessRequest(HttpContext context)
à ASP.login_aspx.ProcessRequest(HttpContext context) dans c:\Users\xxxxx\AppData\Local\Temp\Temporary ASP.NET Files\vs\d71c6134\acc815a5\App_Web_z2aotvlc.0.cs:ligne 0
à System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
à System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
à System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
à System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
à System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
à System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
à System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
à System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
à System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
à System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
à System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

Exception thrown: ‘ComponentSpace.SAML2.Exceptions.SAMLSchemaValidationException’ in ComponentSpace.SAML2.dll


Thansk a lot for your help


This should be:



This is correct in the Configuration Guide but I noticed it was incorrect in the Certificate Guide. My apologies for that. I’ll see the guide is updated.

[quote]
ComponentSpace - 2/5/2021
This should be:



This is correct in the Configuration Guide but I noticed it was incorrect in the Certificate Guide. My apologies for that. I'll see the guide is updated.
[/quote]

Thanks a lot

You’re welcome.