I’ve implemented a custom session store that saves the session in a SQL Server table. When called the InitiateSsoAsync
, it passes through SaveAsync
of my custom store, and I can see that the SsoSessions
inside ServiceProviderSessionState
does not have a value. Attached is a screenshot of what I’m seeing.
When completing the flow, I can see in the logs that it says “Initiation of SSO to the partner identity provider xxxxx has completed successfully.” But since the session from the cache does not contain any value, it throws an error when doing the single logout flow. The error says “ComponentSpace.Saml2.Exceptions.SamlProtocolException: There is no SSO session to partner xxxxx to logout”.
I’m testing this via Postman. Please advise.