public bool Authenticate(string username, string password)
        {
            var clarifyAuthenticationService = new ClarifyAuthenticationService();

            ClarifyAuthenticationResult result = clarifyAuthenticationService.AuthenticateUser(username, password);

            _logger.LogDebug("Authentication for user {0} was {1}successful.".ToFormat(username, result.Success ? "" : "not "));

            return result.Success;
        }
        public bool Authenticate(string username, string password)
        {
            var clarifyAuthenticationService = new ClarifyAuthenticationService();

            ClarifyAuthenticationResult result = clarifyAuthenticationService.AuthenticateUser(username, password);

            _logger.LogDebug("Authentication for user {0} was {1}successful.".ToFormat(username, result.Success ? "" : "not "));

            return(result.Success);
        }
Пример #3
0
        public bool Authenticate(string username, string password)
        {
            //HACK to make sure SDK is spun up. ICK
            _clarifyApplicationFactory.Create();

            var clarifyAuthenticationService = new ClarifyAuthenticationService();

            var result = clarifyAuthenticationService.AuthenticateUser(username, password);

            _logger.LogDebug("Authentication for user {0} was {1}successful.".ToFormat(username, result.Success ? "" : "not "));

            return(result.Success);
        }