cancel
Showing results for 
Search instead for 
Did you mean: 

Open Document using logon token

Former Member
0 Kudos

I generated a logon token which is something like below :

"BLRABAIO13.ao.aogrp.local:6400@{3&2=10096,U3&2v=BLRABAIO13.ao.aogrp.local:6400,UP&66=60,U3&68=secEnterprise:AOABCDEFGH,UP&S9=6198,U3&qe=100,U3&vz=nT9hgPwbgn6ERZv2k68P8Tlnl._kNwfTpev026KCbWk,UP}"

Using this i am trying to access a document on the BI server, like

http://blrabaio13:8080/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AY.sKzGgXcpMge9B1xMPOlU&sIDT...

"BLRABAIO13.ao.aogrp.local:6400@{3&2=10096,U3&2v=BLRABAIO13.ao.aogrp.local:6400,UP&66=60,U3&68=secEnterprise:AOABCDEFGH,UP&S9=6198,U3&qe=100,U3&vz=nT9hgPwbgn6ERZv2k68P8Tlnl._kNwfTpev026KCbWk,UP}"

However it still asks for credentials.

Without giving the credentials, is it possible to access a document using the logontoken

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

What BO version are you using?

Which method you are using to generate the logon token.

Below is a sample to open a document with seralized sessions.

========================

<%@page import="com.crystaldecisions.sdk.framework.*" %>

<%@page import="com.crystaldecisions.sdk.occa.infostore.*" %>

<%

//CMS logon information

String cms = "CMSServerName"; //Enterprise CMS Server

String userid = "Administrator";

String pwd = "";

String auth = "secEnterprise";

//Log onto the CMS and get serailzed session

ISessionMgr entSessionMgr = CrystalEnterprise.getSessionMgr();

IEnterpriseSession entSession = entSessionMgr.logon(userid, pwd, cms, "secEnterprise");

String serializedSession = entSession.getSerializedSession();

response.sendRedirect("http://blrabaio13:8080/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AY.sKzGgXcpMge9B1xMPOlU&sIDT..." + Java.net.URLEncoder.encode(serializedSession));

%>

============================================

You can place the file in AdminTools and test. Proide your login credentials in the code.

Thanks,

Prithvi