on 2020 Jan 29 7:28 AM
Hi guys ,
Can anyone help me on this?
https://answers.sap.com/questions/11549197/bi41-cmc-logon-with-token.html#
Thanks
Request clarification before answering.
I eventually got it to work. It was a long time ago, and I don't remember what I did wrong the first time, but this is how I did it:
String token = iES.getLogonTokenMgr().getDefaultToken();
Cookie ckCMC = new Cookie("CMCPLATFORMSVC_COOKIE_TOKEN", token);
ckCMC.setPath("/");
response.addCookie(ckCMC);
response.sendRedirect("/BOE/CMC");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Iam trying to generate a token for a particular username and password as shown below
enterpriseSession = CrystalEnterprise.getSessionMgr().logon(BO_USERNAME,BO_PASSWORD, BO_CMS_NAME,BO_AUTH_TYPE);
logonTokenMgr = enterpriseSession.getLogonTokenMgr();
defaultToken = logonTokenMgr.createWCAToken("", 20, 1);
Cookie ckCMC = new Cookie("CMCPLATFORMSVC_COOKIE_TOKEN", defaultToken);
ckCMC.setPath("/");
response.addCookie(ckCMC);
response.sendRedirect("/BOE/CMC");
Thanks
User | Count |
---|---|
61 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.