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

            return(NoContent());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> RevokeAccessToken(RevokeAccessTokenCommand command)
        {
            await _accessTokenService.DeactivateCurrentAsync(
                command.Bind(c => c.UserId, UserId).UserId.ToString("N"));

            return(NoContent());
        }
Exemplo n.º 3
0
        public async Task <IActionResult> RevokeAccessToken(RevokeAccessTokenCommand command)
        {
            await _dispatcher.SendAsync(command);

            return(NoContent());
        }
Exemplo n.º 4
0
        public async Task <IActionResult> RevokeAccessToken(RevokeAccessTokenCommand command, CancellationToken ct)
        {
            await Mediator.Send(command, ct);

            return(NoContent());
        }