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.​Saml.​Models.​SamlSpSessionData
Assembly: Duende.IdentityServer
Inheritance: object → SamlSpSessionData
Represents SAML SP session data stored in the user's authentication session.
Remarks
<para>
IMPORTANT: For production deployments with multiple SAML service providers,
server-side sessions SHOULD be enabled to avoid cookie size limitations.
Configure with: builder.AddServerSideSessions()
</para> <para>
Without server-side sessions, session data is stored in the authentication cookie.
Practical limits are approximately:
- 5-8 SAML SPs with 5 OIDC clients
- 3-5 SAML SPs with 10+ OIDC clients
Browser cookie size limit is ~4KB; exceeding this causes cookie chunking and performance degradation.
</para> <para>
With server-side sessions enabled, there is no practical limit on the number of SAML sessions.
</para>
Properties
public
string
EntityId
Gets or sets the SAML Service Provider's EntityId.
public
string
SessionIndex
Gets or sets the SAML SessionIndex value for this SP session.
This value is unique per SP and is included in the SAML AuthnStatement.
public
string
NameId
Gets or sets the NameID value sent to the SP.
public
string
NameIdFormat
Gets or sets the NameID Format used for this SP.
Methods
public
bool
Equals​(object obj)
Determines whether the specified object is equal to the current object.
Two SamlSpSessionData instances are considered equal if they have the same EntityId and SessionIndex,
as these uniquely identify a SAML session at a specific Service Provider.
public
int
GetHashCode​()
Returns a hash code for this instance based on EntityId and SessionIndex.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object