public bool Authenticate(string username, string password)
        {
            var success = ClarifySession.AuthenticateContact(username, password);

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

            return(success);
        }
        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);
        }