Table of Contents

Class LocalApiAuthenticationEvents

Namespace
Fdyay.IdentityServer.Hosting
Assembly
Fdyay.IdentityServer.AspNetCore.dll

Host hooks on the local API handler.

public class LocalApiAuthenticationEvents
Inheritance
LocalApiAuthenticationEvents
Inherited Members

Properties

OnClaimsTransformation

Runs after a token is accepted and before the API is reached.

public Func<LocalApiClaimsTransformationContext, Task> OnClaimsTransformation { get; set; }

Property Value

Func<LocalApiClaimsTransformationContext, Task>

Remarks

A shaping hook, not a second gate: by the time it runs the token has been validated, its binding checked and its scope required, and replacing the principal here cannot undo any of that. A host that wants to refuse a caller refuses it in authorization, where a refusal is visible as one.

Methods

ClaimsTransformationAsync(LocalApiClaimsTransformationContext)

Runs OnClaimsTransformation; override it to shape the principal in a subclass instead.

public virtual Task ClaimsTransformationAsync(LocalApiClaimsTransformationContext context)

Parameters

context LocalApiClaimsTransformationContext

The principal and the request.

Returns

Task

A task that completes when the principal has been shaped.