cancel
Showing results for 
Search instead for 
Did you mean: 

Using logon tokens with OpenDocument URLs in Crystal Report Server 2020 (4.3SP1)

jos_dealmeida
Explorer
0 Kudos

Hi,

I'm trying to open an OpenDocument Url without showing the user the logon screen in Crystal Report Server 2020

i've followed this documentation :

https://help.sap.com/viewer/db6a17c0d1214fd6971de66ea0122378/4.3.1/en-US/45aaa0726e041014910aba7db0e...

and read all those questions :

https://answers.sap.com/questions/4603756/opendocument-and-tokens.html

https://answers.sap.com/questions/7149179/open-document-token.html

https://answers.sap.com/questions/11030103/opendocumentjsp.html

https://answers.sap.com/questions/11213263/opendocument---bypass-login-screen-from-iphone--ip.html

without any success.

my url is correctly formed :

http://cr2020:8080/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AWPCGJJ7CNtHoN9ncjgeVp4&sIDType=...

and i'm passing this :

"cr2020:6400@{3&2=47681,U3&2v=cr2020:6400,UP&66=1200,U3&68=secEnterprise:Administrator,UP&S9=12,U3&qe=100,U3&vz=uHgUrcTjmeaHWV_28xgo4yjCD6X.FNUMC_HXmLXZUlXU6mKwVFG8R9DVgi3HV5pL,UP}"

as X-SAP-LogonToken or

&token=%22cr2020:6400@%7B3&2=47681,U3&2v=cr2020:6400,UP&66=1200,U3&68=secEnterprise:Administrator,UP&S9=12,U3&qe=100,U3&vz=uHgUrcTjmeaHWV_28xgo4yjCD6X.FNUMC_HXmLXZUlXU6mKwVFG8R9DVgi3HV5pL,UP%7D%22

i've created this token by either using this :

https://help.sap.com/viewer/0ef63ba725cd41a8ab4a69c226ec6b07/4.3.1/en-US/920c29af0fe24ba4b7f1d54b042... or the sdk (in .net) with the same exact result.

i can confirm that my session are created in the CMC.

but if i'm trying this :

http://cr2020:6405/biprws/raylight/v1/documents

with the same token :

<?xmlversion="1.0"encoding="UTF-8"standalone="no"?>
<error>
<error_code>WSR 00999</error_code>
<message>Erreur interne (" (Error: RWI 00200)")</message>
</error>

Could someone help me figure it out ? I don't understand what i'm doing wrong that makes the logon screen appears.

Do i need to configure something special in the CMC for this to work ?

Currently i'm using the Administrator account only to test it (but i had the same issue with a normal account)

Is their somewhere logs that i could find on the server, helping me understand more ?

Thanks for all the help that you could give !

jos_dealmeida
Explorer
0 Kudos

ok, for a strange reason this is working :

http://cr2020:6405/biprws/infostore/46916/children?page=1&pageSize=50000&type=CrystalReport

and with those header

X-SAP-LogonToken:"cr2020:6400@{3&2=47703,U3&2v=cr2020:6400,UP&66=40,U3&68=secEnterprise:normal_user,UP&S9=47579,U3&qe=100,U3&vz=byNK_lZ32l5OtCsSHgr2njv49bfVIiO0lSGTTh.amBqaaZ2peBsah0IjAGUI6cvh,UP}"

Accept:application/json

but openDocument links are not...

jos_dealmeida
Explorer
0 Kudos

this is so strange, in this documentation :

https://help.sap.com/viewer/954ffd91a37d45c093d80dd6db2665e4/4.3.1/en-US/45f74a516e041014910aba7db0e...

there is no information about

X-SAP-LogonToken

it's like it doesn't exist at all.

Where could i find a complete documentation (and is this really an option) ?

Is there more parameter that don't work ?

Is there something similar for the serSes (serialized session) parameter ?

jos_dealmeida
Explorer
0 Kudos

i manage to make it work using a serializedSession and using the

&serSes={serializedSession} 

parameter but it uses a lot of the url length and i would really prefer use the X-SAP-LogonToken header instead.

jos_dealmeida
Explorer
0 Kudos

I found this in my log :

|1fb13cc0-2976-5864-09fe-87d474965b84|2021 02 15 14:11:39:734|+0100|Error| |>>|E| |cms_CR2020.CentralManagementServer| 2464|2556|| |37|0|1|0|BIPSDK.SessionMgr:logonEx|cr2020:1060:61.1:1|BIPSDK.SessionMgr:logonEx|cr2020:1060:61.1:1|cms_CR2020.CentralManagementServer.UserLogonEx5|localhost:2464:2556.664020:1|CphKcNMsJkl4rcSGjyk0TfI1|||||||||||assert failure: (sessionmgr.cpp:3586). (0 : CSessionMgr::ValidateApplicationCUID: Attempt to login when specifying an invalid application CUID session. The specified id is = Abw4eEdQBSZEjVxDXJTzF_k).

sessionmgr.cpp:3586:-: TraceLog message 5

|720d6a13-c0a2-1b34-6a03-b460c646e42d|2021 02 15 14:12:27:310|+0100|Error| |>>|E| |cms_CR2020.CentralManagementServer| 2464|1620|| |7|0|1|0|BIPSDK.SessionMgr:logonWithTokenEx|cr2020:1060:64.34:1|BIPSDK.SessionMgr:logonWithTokenEx|cr2020:1060:64.34:1|cms_CR2020.CentralManagementServer.LogonWithTokenEx5|localhost:2464:1620.664603:1|CphKcNMsJkl4rcSGjyk0TfI22|||||||||||assert failure: (sessionmgr.cpp:3586). (0 : CSessionMgr::ValidateApplicationCUID: Attempt to login when specifying an invalid application CUID session. The specified id is = ).

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

It's know issue, search for this KBA:

2992226 - Appending the logon token to the OpenDocument URL in BI 4.3 with &token brings Logon page.

Fixed in 4.3.1 patch 500 and 4.3.2.

Answers (0)