Пример #1
0
        public void should_create_valid_token()
        {
            var tokenString = _factory.CreateAssertionToken();

            TestAssertionValidator.Validate(
                tokenString,
                _tokenEndpointUri,
                _clientId,
                _certificate
                );
        }
Пример #2
0
 private bool ValidateAssertion(string assertion)
 {
     try
     {
         TestAssertionValidator.Validate(
             assertion,
             _tokenEndpointUri,
             "test_client",
             TestCertificate.Load()
             );
         return(true);
     }
     catch
     {
         return(false);
     }
 }