Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Duende.​IdentityServer.​Extensions.​AuthenticationPropertiesExtensions
Assembly: Duende.IdentityServer
Inheritance: object → AuthenticationPropertiesExtensions
Extensions for AuthenticationProperties
Methods
public static
string
GetSessionId​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties)
Gets the user's session identifier.
public static
void
SetSessionId​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties,
string sid)
Sets the user's session identifier.
sid
The session id
public static
System.​Collections.​Generic.​IEnumerable<​string>
GetClientList​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties)
Gets the list of client ids the user has signed into during their session.
public static
void
RemoveClientList​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties)
Removes the list of client ids.
public static
void
SetClientList​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties,
System.​Collections.​Generic.​IEnumerable<​string> clientIds)
Sets the list of client ids.
public static
void
AddClientId​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties,
string clientId)
Adds a client to the list of clients the user has signed into during their session.
public static
System.​Collections.​Generic.​IEnumerable<​Saml.​Models.​SamlSpSessionData>
GetSamlSessionList​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties)
Gets the list of SAML SP sessions from the authentication properties.
Remarks
For production deployments with many SAML service providers, enable server-side sessions
to avoid cookie size limitations. Without server-side sessions, the practical limit is
approximately 5-10 SAML sessions depending on the number of OIDC clients.
public static
void
SetSamlSessionList​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties,
System.​Collections.​Generic.​IEnumerable<​Saml.​Models.​SamlSpSessionData> sessions)
Sets the list of SAML SP sessions in the authentication properties.
public static
void
AddSamlSession​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties,
Saml.​Models.​SamlSpSessionData session)
Adds a SAML session to the authentication properties.
This is an upsert operation - if a session for the same EntityId already exists, it is replaced.
public static
void
RemoveSamlSession​(Microsoft.​AspNetCore.​Authentication.​AuthenticationProperties properties,
string entityId)
Removes a SAML session from the authentication properties by EntityId.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object