Skip to Content
0
Jan 18, 2021 at 04:52 PM

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

127 Views Last edit Jan 18, 2021 at 04:54 PM 3 rev

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/45aaa0726e041014910aba7db0e91070.html

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=CUID

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/920c29af0fe24ba4b7f1d54b042b546e.html 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 !