Table of Contents

Class DefaultSamlResourceResolver

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

Resolves a provider's claim types from its allowed scopes through the resource store. Duende's, measured.

public sealed class DefaultSamlResourceResolver : ISamlResourceResolver
Inheritance
DefaultSamlResourceResolver
Implements
Inherited Members

Remarks

Duende 8.0.1's DefaultSamlResourceResolver: no AllowedScopes, an allowed scope that is not an enabled identity resource, or a RequestedClaimTypes entry that none of those resources' user claims is, each fails with ConfigurationError, each offender logged at Error. Otherwise the requested claim types when there are any, else every user claim of the resources.

Constructors

DefaultSamlResourceResolver(IResourceStore, ILogger<DefaultSamlResourceResolver>?)

Creates the resolver over the store the identity resources are read from.

public DefaultSamlResourceResolver(IResourceStore resourceStore, ILogger<DefaultSamlResourceResolver>? logger = null)

Parameters

resourceStore IResourceStore

Finds the identity resources the provider's allowed scopes name.

logger ILogger<DefaultSamlResourceResolver>

Where each configuration problem is logged; nothing is logged when null.

Exceptions

ArgumentNullException

resourceStore is null.

Fields

ConfigurationError

Duende's message for every failure, the detail going to the log.

public const string ConfigurationError = "Service provider configuration error"

Field Value

string

Methods

ResolveRequestedClaimTypesAsync(SamlServiceProvider, CancellationToken)

The claim types sp may be issued, or why the sign-on is refused.

public Task<SamlResourceResolutionResult> ResolveRequestedClaimTypesAsync(SamlServiceProvider sp, CancellationToken ct)

Parameters

sp SamlServiceProvider

The registration of the service provider the assertion is for.

ct CancellationToken

Cancels the resolution.

Returns

Task<SamlResourceResolutionResult>

A successful result carrying the claim types and identity resources, or a failure carrying the message.

Exceptions

ArgumentNullException

sp is null.