I am using Component space SSO for google Sign in. I get the below Error. My saml config is <PartnerServiceProvider Name="google.com/a/mydomian.com" WantAuthnRequestSigned="false" SignSAMLResponse="false" SignAssertion="false" EncryptAssertion="false" NameIDFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" AssertionConsumerServiceUrl=" https://www.google.com/a/mydomian.com/acs" PartnerCertificateFile="Mycer.cer"/> My Code public ActionResult SingleSignOnGoogle() { string partnerSP = "google.com/a/mydomain.com"; string targetUrl = " https://mail.google.com/a/mydomain.com"; string userName = " [email protected]"; IDictionary<string, string> attributes = new Dictionary<string, string>(); foreach (string key in WebConfigurationManager.AppSettings.Keys) { if (key.StartsWith(AppSettings.Attribute)) { attributes[key.Substring(AppSettings.Attribute.Length + 1)] = WebConfigurationManager.AppSettings[key]; } } SAMLIdentityProvider.InitiateSSO( Response, userName, attributes, targetUrl, partnerSP); return new EmptyResult(); } My Google Settings
|