Class DefaultUserInfoResponseGenerator
- Namespace
- Fdyay.IdentityServer.ResponseHandling
- Assembly
- Fdyay.IdentityServer.Core.dll
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public sealed class DefaultUserInfoResponseGenerator : IUserInfoResponseGenerator
- Inheritance
-
DefaultUserInfoResponseGenerator
- Implements
- Inherited Members
Constructors
DefaultUserInfoResponseGenerator(IResourceStore, IProfileService)
Creates the generator.
public DefaultUserInfoResponseGenerator(IResourceStore resourceStore, IProfileService profileService)
Parameters
resourceStoreIResourceStoreFinds the identity resources the token's scopes name, and so the claims they release.
profileServiceIProfileServiceSupplies the user's claims and says whether the user is still active.
Methods
ProcessAsync(UserInfoRequestValidationResult, CancellationToken)
Builds the response for a validated request's user, as seen by the client the token was issued to.
public Task<Dictionary<string, object>> ProcessAsync(UserInfoRequestValidationResult validationResult, CancellationToken ct)
Parameters
validationResultUserInfoRequestValidationResultctCancellationToken
Returns
Remarks
Duende's signature since 0.119.0 — the validated request, whose subject, client and token scopes this reads; it took the three apart. The client is carried so the profile service can tell who is asking: handing it a placeholder would make the caller unidentifiable at the one endpoint whose entire job is releasing user data.