Redis can also be used as a central repository of SAML session state information.
You need to implement the ISSOSessionStore interface by extending the AbstractSSOSessionStore class. These are under the ComponentSpace.SAML2.Data namespace. The Load, Save and Delete methods need to be implemented. There are Serialize and Deserialize helper methods for converting SAML session objects to and from byte arrays. The CreateSessionIDForType method returns a unique session key that may be used as the index when storing/retrieving SAML session data.
You register your implementation at application start-up by settings the SAMLController.SSOSessionStore property.
Regards ComponentSpace Development
|