public async Task <AuthorizationResult> ThenAsync(Authorize request) { var authData = await _serverRepository.Authorize(request.Username, request.Password).ConfigureAwait(false); await _localConfigurationRepository.SaveAuthorizationData(authData).ConfigureAwait(false); var result = new AuthorizationResult { Message = "Authorization successful" }; return(result); }