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.

interface Duende.​IdentityServer.​ResponseHandling.​IUserInfoResponseGenerator

Assembly: Duende.IdentityServer

Generates the response returned from the UserInfo endpoint. The response is a dictionary of claims about the authenticated user, filtered to the scopes and claims that were granted in the access token presented with the request. This interface is invoked after the UserInfo request has been validated and the access token has been introspected.

Remarks

The default implementation retrieves claims from the registered <c>IProfileService</c> and filters them according to the requested scopes. Override this interface or extend the default implementation to add, remove, or transform claims in the UserInfo response, for example to aggregate claims from multiple sources or to apply custom claim transformations.

Methods

ProcessAsync​(Validation.​UserInfoRequestValidationResult validationResult, System.​Threading.​CancellationToken ct)
Processes a validated UserInfo request and produces the claims response.
Returns A dictionary of claim names to claim values that will be serialized as JSON and returned from the UserInfo endpoint.
validationResult The result of validating the UserInfo request, including the subject, client, and the scopes and claims granted by the access token.
ct The cancellation token.