public void should_create_valid_token() { var tokenString = _factory.CreateAssertionToken(); TestAssertionValidator.Validate( tokenString, _tokenEndpointUri, _clientId, _certificate ); }
private bool ValidateAssertion(string assertion) { try { TestAssertionValidator.Validate( assertion, _tokenEndpointUri, "test_client", TestCertificate.Load() ); return(true); } catch { return(false); } }