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

Assembly: Duende.IdentityServer

Inheritance: object → IdpInitiatedSsoResult

The result of an IdP-initiated SSO operation. Either a success containing an <see cref="T:Microsoft.AspNetCore.Http.IResult" /> that writes the SAML response via the appropriate binding, or an error with a descriptive message the host can display in its portal UI.

Properties

public bool
IsError
Gets a value indicating whether the operation failed.
public string
Error
Gets the error description when <see cref="P:Duende.IdentityServer.Saml.IdpInitiatedSsoResult.IsError" /> is <c>true</c> .
public string
SpEntityId
Gets the entity ID of the target service provider, when available.
Gets the <see cref="T:Microsoft.AspNetCore.Http.IResult" /> that writes the SAML response to the browser via the appropriate binding (e.g., HTTP-POST auto-submit form). Return it from a Razor Page handler or minimal API endpoint. <c>null</c> when <see cref="P:Duende.IdentityServer.Saml.IdpInitiatedSsoResult.IsError" /> is <c>true</c> .

Methods

public static IdpInitiatedSsoResult
Success​(Microsoft.​AspNetCore.​Http.​IResult response, string spEntityId)
Creates a successful result containing the SAML response.
response The <see cref="T:Microsoft.AspNetCore.Http.IResult" /> that writes the SAML response. Custom implementations are responsible for ensuring the result produces a properly signed SAML response via the appropriate binding.
spEntityId The entity ID of the target service provider.
public static IdpInitiatedSsoResult
Failure​(string error, string spEntityId)
Creates a failure result with an error description.
error A description of why the operation failed.
spEntityId The entity ID of the target service provider, if known.
public static IdpInitiatedSsoResult
Failure​(string error)
Creates a failure result with an error description, without a known SP entity ID.
error A description of why the operation failed.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object