Show / Hide Table of Contents

Class AspNetSsoSessionStore

The single sign-on session store implemented using the ASP.NET core session.

Inheritance
System.Object
AspNetSsoSessionStore
Implements
ISsoSessionStore
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ComponentSpace.Saml2.Session
Assembly: ComponentSpace.Saml2.dll
Syntax
public class AspNetSsoSessionStore : ISsoSessionStore

Constructors

AspNetSsoSessionStore(IHttpContextAccessor, ILoggerFactory)

Initializes a new instance of the AspNetSsoSessionStore class.

Declaration
public AspNetSsoSessionStore(IHttpContextAccessor httpContextAccessor, ILoggerFactory loggerFactory)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor

The HTTP context accessor.

Microsoft.Extensions.Logging.ILoggerFactory loggerFactory

The logger factory.

Properties

SessionID

Gets the unique SSO session identifier.

Declaration
public virtual string SessionID { get; }
Property Value
Type Description
System.String

The unique SSO session identifier.

Methods

LoadAsync<T>()

Loads the SSO session object.

Declaration
public virtual Task<T> LoadAsync<T>()
Returns
Type Description
System.Threading.Tasks.Task<T>

A task that represents the operation and returns the SSO session object or null if none.

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
System.Threading.Tasks.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
System.Threading.Tasks.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
System.Object ssoSession

The SSO session object.

Returns
Type Description
System.Threading.Tasks.Task

A task that represents the operation.

Implements

ISsoSessionStore
In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2022. All rights reserved.