我们已经为我们的FLP启用了SAML。当Android Cordova App (Fiori Client)启动时,我有SSO令牌(可用),试图将此令牌传递给SAP Fiori客户端中的Fiori Launchpad URL。我像下面这样定制了index.html,但是它不起作用。饼干还没通过呢。
document.addEventListener("deviceready", function() {
if (sap && sap.AppUpdate) {
initializeAppUpdateListeners();
var ssotoken ="<ADERGEVTEMPERERRER>"
document.cookie = "CORPSSOTOKEN="+ssoToken+";domain=.corp.com;path=/";
}
}, false);发布于 2016-12-14 19:37:25
下面的代码用于将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);
}}
https://stackoverflow.com/questions/40664980
复制相似问题