Exemple #1
0
        public string BuildAuthnRequestUrl(Saml2AuthnRequest saml2AuthnRequest, AsymmetricAlgorithm signingKey,
                                           string hashingAlgorithm, string relayState)
        {
            var request = saml2AuthnRequest.GetXml().OuterXml;

            return(BuildRequestUrl(signingKey, hashingAlgorithm, relayState, request, saml2AuthnRequest.Destination));
        }
Exemple #2
0
        public string BuildAuthnRequestUrl(Saml2AuthnRequest saml2AuthnRequest, AsymmetricAlgorithm signingKey,
                                           string hashingAlgorithm, string relayState)
        {
            System.Console.WriteLine("");
            System.Console.WriteLine("[HttpRedirectBinding][BuildAuthnRequestUrl] => saml2AuthnRequest: " + saml2AuthnRequest);
            System.Console.WriteLine("[HttpRedirectBinding][BuildAuthnRequestUrl] => hashingAlgorithm: " + hashingAlgorithm);
            System.Console.WriteLine("[HttpRedirectBinding][BuildAuthnRequestUrl] => relayState: " + relayState);

            var request = saml2AuthnRequest.GetXml().OuterXml;

            System.Console.WriteLine("");
            System.Console.WriteLine("[HttpRedirectBinding][BuildAuthnRequestUrl] => request: " + request);
            System.Console.WriteLine("");

            return(BuildRequestUrl(signingKey, hashingAlgorithm, relayState, request, saml2AuthnRequest.Destination));
        }
Exemple #3
0
        public string BuildAuthnRequestUrl(string providerName, Saml2AuthnRequest saml2AuthnRequest, string relayState)
        {
            var request = saml2AuthnRequest.GetXml().OuterXml;

            return(BuildRequestUrl(providerName, relayState, request, saml2AuthnRequest.Destination));
        }