Exemple #1
0
        public void StsSaml11(X509Certificate2 cert)
        {
            Prep(cert);

            var client = new SamlClient("Anonymous", binding, samlpEp);

            client.ClientCredentials.ClientCertificate.Certificate = cert;
            target = client;

            Request();
            Verify();
        }
Exemple #2
0
        public void WsTrust(X509Certificate2 cert)
        {
            Prep(cert);

            var client = new WsTrustClient(binding, wstEp);

            client.ClientCredentials.ClientCertificate.Certificate = cert;
            target = client;

            Request();
            Verify();

            assertion = client.RenewTicket(session, assertion);
            Verify();
        }