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.​AuthNRequest

Assembly: Duende.IdentityServer

Inheritance: object → AuthNRequest

Implemented Interfaces

Represents a SAML 2.0 AuthnRequest message sent by a Service Provider to request authentication.

Properties

protected System.​Type
EqualityContract
public static string
MessageName
public required string
Id
Gets or sets the unique identifier for this request. Must be unique across all requests from this SP.
public required string
Version
Gets or sets the SAML version. Must be "2.0".
public required System.​DateTime
IssueInstant
Gets or sets the time instant of issue in UTC.
public System.​Uri
Destination
Gets or sets the URI reference indicating the destination to which this request is directed. Should match the IdP's SSO endpoint URL.
public string
Consent
Gets or sets the consent obtained from the principal for sending this request.
public required string
Issuer
Gets or sets the entity identifier of the Service Provider making this request. This is the SP's entity ID from its metadata.
public bool
ForceAuthn
Gets or sets a value indicating whether the IdP must freshly obtain the authentication (not from cache). If true, the IdP must reauthenticate the user even if a session exists. Default: false
public bool
IsPassive
Gets or sets a value indicating whether the IdP should not actively interact with the user. If true, the IdP should not show UI to the user (authentication must be passive). Default: false
public System.​Uri
AssertionConsumerServiceUrl
Gets or sets the URL of the ACS endpoint where the response should be sent (optional). If specified, overrides the default ACS URL from SP metadata.
public int?
AssertionConsumerServiceIndex
Gets or sets the index of the ACS endpoint where the response should be sent (optional). References an indexed ACS endpoint in the SP's metadata.
ProtocolBinding
Gets or sets the SAML protocol binding to use for the response (optional). Example: "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
RequestedAuthnContext
Gets or sets the requested authentication context constraints. Specifies requirements/preferences for the authentication context the IdP should use. Optional - if null, no specific context is required.
public NameIdPolicy
NameIdPolicy
Gets or sets the requested NameID policy constraints from the SP. Specifies the format and characteristics of the name identifier to return. Optional - if null, no specific policy is requested.

Methods

public string
ToString​()
protected bool
PrintMembers​(System.​Text.​StringBuilder builder)
public int
GetHashCode​()
public bool
Equals​(object obj)
public bool
Equals​(AuthNRequest other)
public AuthNRequest
<Clone>$​()
protected void
Finalize​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object