Table of Contents

Class Saml2InteractionResponse

Namespace
Fdyay.IdentityServer.Saml.Idp
Assembly
Fdyay.IdentityServer.Saml.dll

What a SAML sign-on needs from the user: to sign in, nothing, or an error. Duende 8.0.1's.

public sealed record Saml2InteractionResponse : IEquatable<Saml2InteractionResponse>
Inheritance
Saml2InteractionResponse
Implements
Inherited Members

Properties

IsError

Whether this is an error.

public bool IsError { get; }

Property Value

bool

IsLogin

Whether the user must sign in.

public bool IsLogin { get; }

Property Value

bool

Message

What went wrong, for this server's own pages and logs; never sent to the service provider.

public string? Message { get; }

Property Value

string

StatusCode

The top-level SAML status code; set only for an error.

public string? StatusCode { get; }

Property Value

string

SubStatusCode

The second-level SAML status code; set only for an error.

public string? SubStatusCode { get; }

Property Value

string

Methods

Error(string, string?)

An error, with its SAML status codes.

public static Saml2InteractionResponse Error(string statusCode, string? subStatusCode)

Parameters

statusCode string
subStatusCode string

Returns

Saml2InteractionResponse

Error(string, string?, string?)

An error, with its SAML status codes and a message for this server's own pages.

public static Saml2InteractionResponse Error(string statusCode, string? subStatusCode, string? message)

Parameters

statusCode string
subStatusCode string
message string

Returns

Saml2InteractionResponse

Login()

The user must sign in.

public static Saml2InteractionResponse Login()

Returns

Saml2InteractionResponse

NoInteraction()

Nothing is needed of the user.

public static Saml2InteractionResponse NoInteraction()

Returns

Saml2InteractionResponse