Example #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));
        }
        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);
        }
Example #3
0
 public async Task <bool> Login([FromBody] LoginParameters parameters)
 {
     ValidateForEmptyParameters(parameters);
     return(await _authenticationService.LogInAsync(parameters.UserName, parameters.Password, parameters.PersistCookie));
 }