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