public bool Authenticate(string username, string password)
        {
            //HACK to make sure SDK is spun up. ICK
            _clarifyApplicationFactory.Create();

            var success = ClarifySession.AuthenticateContact(username, password);

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

            return(success);
        }
Пример #2
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);
        }