This is a specific case where mobile server does not support what you want. This option allows you to write your own java class which implements the method “public String getUser(HttpServletRequest request)“. At run-time, when configured for custom scenario, mobile server will call this method of given class and provide it with HTTP Servlet Request. In this method you can write your custom code to parse the request and return the user id back. Mobile server will take this user id and log you on to BOE using trusted connection.
[Sample class attached]
The class can be packaged and deployed as follows
- You need to place the class in respective package inside <WebAppsROOT>\webapps\MobileBIService\WEB-INF\classes
- If you have any dependent libraries you should copy them to <WebAppsROOT>\webapps\MobileBIService\WEB-INF\lib. Just ensure that your libraries are not already present in this folder.
- You must note that, when you upgrade mobile server. You need to backup the class and respective libraries that you had copied and apply the changes again to make SSO work.
Now, lets see how to configure mobile server for this scenario
- Your environment should ensure the authentication of user
- After authentication is done, your custom class is responsible for parsing the request and provide user Id
- SAP Business Objects BI platform configured for trusted authentication
is to enable the Authentication Scheme
- Copy the authscheme.properties from default folder in to custom folder (<WebAppsROOT>\webapps\MobileBIService\WEB-INF\config)
- Then modify the authscheme.properties file in custom folder
- Un-comment line ‘TRUST_CUSTOM=com.businessobjects.mobilebi.server.logon.impl.TrustedCustom’
- Save and close the file
is to define the default SSO configuration
- Copy the sso.properties from default folder in to custom folder (<WebAppsROOT>\webapps\MobileBIService\WEB-INF\config)
- Then modify the sso.properties file in custom folder
- Choose your default CMS identifier
- Now define your authentication scheme (the one that you have enabled in first step)
- CMS can be provided as an Alias, IP or cluster name
- Cluster name
- Now configure all the properties using this identifier as below
- abc.trusted.auth.sharedsecret=<copy the shared secret here>
- You need to additionally configure the header name that you shall be using to provide the user ID
- abc.trusted.auth.user.param=<fully qualified name of your custom class>
- Save the sso.properties file.
is to now deploy the MobileBIService again after changes mentioned above. Once done, you can validate if your SSO has been setup correctly by executing following URL from browser
Note: While executing the URL in browser, you should be sending the request with the authentication data that you expect your custom class to parse.