예제 #1
0
        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);
        }