public async Task <IEndpointResult> ProcessAsync(RevocationRequest request) { var result = await ProcessRawAsync(request); if (result.ErrorResult != null) { return(result.ErrorResult); } return(result.StatusCodeResult); }
public async Task <RevocationRawResult> ProcessRawAsync(RevocationRequest request) { Dictionary <string, StringValues> fields = new Dictionary <string, StringValues> { { "client_id", request.ClientId }, { "token_type_hint", request.TokenTypHint }, { "token", request.Token }, { "revoke_all_subjects", request.RevokeAllSubjects } }; var formCollection = new FormCollection(fields); var result = await ProcessRawRevocationAsync(formCollection); return(result); }