ComponentSpace

Forums



Null reference exception in SLO middleware


Null reference exception in SLO middleware

Author
Message
istanev93
istanev93
New Member
New Member (2 reputation)New Member (2 reputation)New Member (2 reputation)New Member (2 reputation)New Member (2 reputation)New Member (2 reputation)New Member (2 reputation)New Member (2 reputation)New Member (2 reputation)

Group: Forum Members
Posts: 1, Visits: 1
Hi,

I'm using ComponentSpace 2.2.0 for ASP.NET Core and using the Middleware.
SSO seems to work fine, however, I get a null reference exception within the middleware when it tries to finalise the SLO.

On the IdP side, I call only: await _signInManager.SignOutAsync(); to sign out my user.
Looking at the browser requests, the error happens right after landing on /SAML/SingleLogoutServiceCompletion.

Here is the console output from my dotnet console process:

dbug: ComponentSpace.Saml2.SamlProvider[0]
  SAML session state (ae6f8640-0dfa-4596-8de4-23df975de622):
  IdP state:

fail: ComponentSpace.Saml2.SamlIdentityProvider[101]
  Sending an SLO message to the partner service provider has failed.
System.NullReferenceException: Object reference not set to an instance of an object.
 at ComponentSpace.Saml2.SamlIdentityProvider.SendSloAsync(String errorMessage)
dbug: ComponentSpace.Saml2.Middleware.SamlMiddleware[0]
  An exception has been caught by the SAML middleware.
System.NullReferenceException: Object reference not set to an instance of an object.
 at ComponentSpace.Saml2.SamlIdentityProvider.SendSloAsync(String errorMessage)
 at ComponentSpace.Saml2.Middleware.SamlMiddleware.HandleSloCompletionAsync(HttpContext context)
 at ComponentSpace.Saml2.Middleware.SamlMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
dbug: ComponentSpace.Saml2.Middleware.SamlMiddleware[0]
  The user is being redirected to /Error.

Any ideas what is going on?

ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
Please enable the SAML trace and send the generated log file as an email attachment to [email protected] mentioning your forum post.
We would like to see the successful SSO and failing SLO.
Thanks.
https://www.componentspace.com/Forums/7936/Enabling-SAML-Trace


Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 1 query. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search