Interface ITokenResponseGenerator
- Namespace
- Fdyay.IdentityServer.ResponseHandling
- Assembly
- Fdyay.IdentityServer.Core.dll
Produces the token endpoint response for a validated request.
public interface ITokenResponseGenerator
Methods
ProcessAsync(ValidatedTokenRequest, CancellationToken)
Issues the tokens a validated request has earned and returns the token response members (RFC 6749 ยง5.1), keyed by
their parameter names: access_token, token_type, expires_in and scope, with
refresh_token, id_token and issued_token_type where the grant calls for them.
Task<Dictionary<string, object>> ProcessAsync(ValidatedTokenRequest request, CancellationToken cancellationToken = default)
Parameters
requestValidatedTokenRequestThe validated token request.
cancellationTokenCancellationTokenCancels the token creation and storage.
Returns
- Task<Dictionary<string, object>>
The members of the JSON token response.