Skip to Content
avatar image
Former Member

Custom Fiori Client - set Cookie for SSO

Hi Experts,

I am working on a Custom Fiori Client for setting SSO withour TC70 Android Device Launcher.

The launcher is giving us a corporate cookie which needs to be passed to the Fiori Launchpad URL.

I have added the below Android /Java code in the MainActivity.java but the cookie is not set.

The same is working on non-Fiori Client , Cordova App.

Please let me know if I am doing anything wrong. Is there any standard way to set the Cookie to the the Fiori Launchpad in the Fiori Client (Cordova)?

public class MainActivity extends CordovaActivity
{@Override
    public void onCreate(Bundle savedInstanceState)
    {

super.onCreate(savedInstanceState);


/* Initialize CookieManager */
CookieManager cm = CookieManager.getInstance();      

String cookieString = "CORPSSO="+ deviceUserData.getMyCorpToken() + "; domain=.corp.com; path=/";

/*set cookie to the URL */
cm.setCookie(launchUrl, cookieString); 

loadUrl(launchUrl);

}

}
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers