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?
|