예제 #1
0
        public bool Login(LoginParameters parameters)
        {
            if (parameters == null)
            {
                throw new ClientException("It is not allowed to call this authentication service method with no parameters provided.");
            }
            _logger.Trace(() => "Login: "******"Login", parameters.UserName));
        }
예제 #2
0
        public bool Login(LoginParameters parameters)
        {
            if (parameters == null)
                throw new ClientException("It is not allowed to call this authentication service method with no parameters provided.");
            _logger.Trace(() => "Login: "******"Login", parameters.UserName);
        }
예제 #3
0
 public async Task <bool> Login([FromBody] LoginParameters parameters)
 {
     ValidateForEmptyParameters(parameters);
     return(await _authenticationService.LogInAsync(parameters.UserName, parameters.Password, parameters.PersistCookie));
 }