Class AspNetSsoSessionStore
- Namespace
- ComponentSpace.Saml2.Session
- Assembly
- ComponentSpace.Saml2.dll
The single sign-on session store implemented using the ASP.NET core session.
public class AspNetSsoSessionStore : ISsoSessionStore
- Inheritance
-
AspNetSsoSessionStore
- Implements
- Inherited Members
Constructors
AspNetSsoSessionStore(IHttpContextAccessor, ILoggerFactory)
Initializes a new instance of the AspNetSsoSessionStore class.
public AspNetSsoSessionStore(IHttpContextAccessor httpContextAccessor, ILoggerFactory loggerFactory)
Parameters
httpContextAccessorIHttpContextAccessorThe HTTP context accessor.
loggerFactoryILoggerFactoryThe logger factory.
Properties
SessionID
Gets the unique SSO session identifier.
public virtual string SessionID { get; }
Property Value
- string
The unique SSO session identifier.
Methods
LoadAsync<T>()
Loads the SSO session object.
public virtual Task<T> LoadAsync<T>()
Returns
- Task<T>
A task that represents the operation and returns the SSO session object or
nullif none.
Type Parameters
T
RefreshAsync<T>()
Refreshes the SSO session object so the sliding expiration is reset.
public virtual Task RefreshAsync<T>()
Returns
- Task
A task that represents the operation.
Type Parameters
T
RemoveAsync<T>()
Removes the SSO session object.
public virtual Task RemoveAsync<T>()
Returns
- Task
A task that represents the operation.
Type Parameters
T
SaveAsync(object)
Saves the SSO session object.
public virtual Task SaveAsync(object ssoSession)
Parameters
ssoSessionobjectThe SSO session object.
Returns
- Task
A task that represents the operation.