Configure SAML for SugarCRM to redirect to Web or Mobile Platform

Configure SAML for SugarCRM to redirect to Web or Mobile Platform

By Centrify on ‎08-30-2017 01:47 PM

First of all, we have to understand a normal SugarCRM URL and some parameter like the following:

 

  • mobile=0: requesting the web base platform.
  • mobile=-1: requesting the mobile base platform.
  • platform=base: requesting the web base platform.
  • platform=mobile: requesting the mobile base platform.
  • dataOnly=1: appears in the URL when "Showing the login page in the main window (no popup)".
  • module=User: define the modulo to show, for this example the User module.

 

With that clear, we need to search for the parameters that identify the platform that we are using in the URL.

 

Note:

AssertionConsumerServiceURL: A variable that contains the specific Assertion Consumer Service URL that specifies the URL to which the Centrify Identity Services sends the SAML response.

It should look like this:

 

https://acme.sugarondemand.com/index.php?module=Users&action=Authenticate&platform=base

 

The following custom script make possible to choose the required platform:

 

var assertionCSURL = AssertionConsumerServiceURL;

var recipient = 'https://' + CorpIdentifier + '.sugarondemand.com/index.php?module=Users&action=Authenticate&mobile=0';

 

if(assertionCSURL != null){

    var isMobile = AssertionConsumerServiceURL.indexOf("platform=mobile");

    var isMobile2 = AssertionConsumerServiceURL.indexOf("mobile=-1");

 

    if(isMobile != -1 || isMobile2 != -1)

            var recipient = 'https://' + CorpIdentifier + '.sugarondemand.com/index.php?module=Users&action=Authenticate&dataOnly=1&platform=mobile';

}

 

Screen Shot 2017-08-30 at 3.35.36 PM.png

 

Now we can test the Service Provider Initiated SSO from a Web Platform:Screen Shot 2017-08-29 at 5.06.23 PM.png

 

 

 

Or do it from a Mobile platform:Screen Shot 2017-08-29 at 5.07.47 PM.png

 

 

 

Showing results for 
Search instead for 
Do you mean 
Labels

Community Control Panel