Example #1
0
        public Task <string> Handle(AuthenticateOnRestServiceQuery request, CancellationToken cancellationToken)
        {
            var token = new JwtSecurityTokenHandler().WriteToken(
                _jsonWebTokenService.IssueToken(request.TemporaryToken));

            return(_authenticationService.AuthenticateAsync(token, cancellationToken));
        }