2016-11-17 5 views
0

Мы включили SAML в наш FLP. У меня есть токен SSO (доступен), когда приложение Android Cordova (Fiori Client) запущено, пытаясь передать этот токен URL-адресу Fiori Launchpad в SAP Fiori Client. Я настроил index.html, как показано ниже, но он не работает. Печенье не передается.Cordova SAP Fiori Client - как передать идентификатор SSO на FLP URL

document.addEventListener("deviceready", function() { 
      if (sap && sap.AppUpdate) { 
       initializeAppUpdateListeners(); 
       var ssotoken ="<ADERGEVTEMPERERRER>" 
    document.cookie = "CORPSSOTOKEN="+ssoToken+";domain=.corp.com;path=/"; 


      } 
     }, false); 

ответ

0

Ниже приведена информация о передаче файла cookie клиенту Fiori.

public class MainActivity extends CordovaActivity 
{ 
@Override 
public void onCreate(Bundle savedInstanceState) 
{ 
    super.onCreate(savedInstanceState); 
    // without this line the app crashes when we try to set a cookie 
    new XWalkView(this, this).onDestroy(); 
    XWalkCookieManager cookieManager = new XWalkCookieManager(); 
    // Note that the cookie must be a persistent cookie (ie: it must have an  expiry), since the Kapsel plugins clear session cookies on startup (but after onCreate). 
    cookieManager.setCookie("<replace this with the Fiori launchpad URL>","testCookie=testCookieValue; Expires=Mon, 01-Dec-2036 19:29:56 GMT; Path=/; Secure;"); 
    // Set by <content src="index.html" /> in config.xml 
    loadUrl(launchUrl); 
} 

}