Class SessionIDDelegates
The standard session ID delegates.
Inheritance
Inherited Members
Namespace: ComponentSpace.SAML2.Data
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class SessionIDDelegates
Properties
AddSAMLCookieDelegate
Gets or sets the add SAML cookie delegate.
The delegate adds the SAML session cookie to the HTTP response.
Declaration
public static AddSAMLCookieDelegate AddSAMLCookieDelegate { get; set; }
Property Value
Type | Description |
---|---|
AddSAMLCookieDelegate | The session ID delegate. |
SessionIDDelegate
Gets or sets the session ID delegate.
The SSO session identifier must be unique for the user's browser session. It's used to identify which SSO session information is specific to the user's browser session.
By default GetSessionIDFromSAMLCookie
is used.
Declaration
public static SessionIDDelegate SessionIDDelegate { get; set; }
Property Value
Type | Description |
---|---|
SessionIDDelegate | The session ID delegate. |
Methods
GetSessionIDFromAnonymousID()
Gets the SSO session identifier by returning the ASP.NET anonymous identifier.
This is the System.Web.HttpContext.Request.AnonymousID
.
ASP.NET anonymous identification must be enabled.
The web.config must include <anonymousIdentification enabled="true"/>.
Declaration
public static string GetSessionIDFromAnonymousID()
Returns
Type | Description |
---|---|
System.String | The SSO session identifier. |
GetSessionIDFromHttpSessionState()
Gets the SSO session identifier by returning the ASP.NET session state identifier.
This is the System.Web.HttpSessionState.SessionID
.
ASP.NET session state must be enabled.
The default setting of <sessionState cookieless="UseCookies"/> in web.config is required.
Declaration
public static string GetSessionIDFromHttpSessionState()
Returns
Type | Description |
---|---|
System.String | The SSO session identifier. |
GetSessionIDFromSAMLCookie()
Gets the SSO session identifier stored in a SAML cookie.
Declaration
public static string GetSessionIDFromSAMLCookie()
Returns
Type | Description |
---|---|
System.String | The SSO session identifier. |