Table of Contents

Class SamlResourceResolutionResult

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

The claim types a service provider may be issued, or why it may be issued none. Duende's.

public sealed class SamlResourceResolutionResult
Inheritance
SamlResourceResolutionResult
Inherited Members

Properties

ClaimTypes

The claim types the profile service is asked for.

public IReadOnlyList<string> ClaimTypes { get; }

Property Value

IReadOnlyList<string>

Error

Why it failed; shown on the error page.

public string? Error { get; }

Property Value

string

Succeeded

Whether the claim types were resolved; when false, Error says why.

public bool Succeeded { get; }

Property Value

bool

ValidatedResources

The identity resources the provider's allowed scopes named.

public ResourceValidationResult? ValidatedResources { get; }

Property Value

ResourceValidationResult

Methods

Failure(string)

A resolution that failed.

public static SamlResourceResolutionResult Failure(string error)

Parameters

error string

Why, shown on the error page.

Returns

SamlResourceResolutionResult

A result with Succeeded false and no claim types.

Exceptions

ArgumentException

error is null or empty.

Success(IReadOnlyList<string>, ResourceValidationResult)

A resolution that succeeded.

public static SamlResourceResolutionResult Success(IReadOnlyList<string> claimTypes, ResourceValidationResult validatedResources)

Parameters

claimTypes IReadOnlyList<string>

The claim types the profile service is asked for.

validatedResources ResourceValidationResult

The identity resources the provider's allowed scopes named.

Returns

SamlResourceResolutionResult

A result with Succeeded true.

Exceptions

ArgumentNullException

Either argument is null.