ComponentSpace

Forums



Google SSO not working


Google SSO not working

Author
Message
Kiran
Kiran
New Member
New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)

Group: Awaiting Activation
Posts: 6, Visits: 20
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





ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
You need to sign the SAML response. Make sure that SignSAMLResponse is set to true in your saml.config.
Also, the verification certificate configured in Google must match with the PFX file configured for your identity provider.

Regards
ComponentSpace Development
Kiran
Kiran
New Member
New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)

Group: Awaiting Activation
Posts: 6, Visits: 20
ComponentSpace - 9/25/2016
You need to sign the SAML response. Make sure that SignSAMLResponse is set to true in your saml.config.
Also, the verification certificate configured in Google must match with the PFX file configured for your identity provider.

Hi Setting the SignsSAMLResponse as true solved my problem. Thanks a lot
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
Thanks Kiran for the update. I'm glad that fixed the issue.

Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 2 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search