public async Task <IActionResult> RevokeAccessToken([FromBody] RevokeTokenRequest request)
        {
            var command = new RevokeAccessTokenCommand(request.UserId, request.Token);
            await _dispatcher.SendAsync(command);

            return(NoContent());
        }
Пример #2
0
        public async Task <IActionResult> RevokeAccessToken(RevokeAccessTokenCommand command)
        {
            await _accessTokenService.DeactivateCurrentAsync(
                command.Bind(c => c.UserId, UserId).UserId.ToString("N"));

            return(NoContent());
        }
Пример #3
0
        public async Task <IActionResult> RevokeAccessToken(RevokeAccessTokenCommand command)
        {
            await _dispatcher.SendAsync(command);

            return(NoContent());
        }
Пример #4
0
        public async Task <IActionResult> RevokeAccessToken(RevokeAccessTokenCommand command, CancellationToken ct)
        {
            await Mediator.Send(command, ct);

            return(NoContent());
        }