Table of Contents

Interface ISamlNameIdGenerator

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

Chooses the NameID an assertion names its subject by. Duende 8.0.1's ISamlNameIdGenerator.

public interface ISamlNameIdGenerator

Remarks

Asked at both sign-on doors with the format already resolved: the request's NameIDPolicy, else the provider's DefaultNameIdFormat, else unspecified. A host that issues a pairwise or transient identifier replaces this; the default does neither, as Duende's does neither.

Methods

GenerateAsync(NameIdGenerationContext, CancellationToken)

The NameID to issue for context's user, or the status to refuse the sign-on with.

Task<NameIdGenerationResult> GenerateAsync(NameIdGenerationContext context, CancellationToken cancellationToken = default)

Parameters

context NameIdGenerationContext

The user, the service provider and the format already resolved.

cancellationToken CancellationToken

Cancels the generation.

Returns

Task<NameIdGenerationResult>

A result carrying the NameID, or a refusal status with no NameID.