Create Log on Token

Hi folks,

Could you pls tell me any solution for creating the logon token without hardcoding the username and password ?

Note : My Infoview uses SSO. From there i want to create the log on token.
Please help me out.

Thanks a lot
-Jayabal.


Jayabal :india: (BOB member since 2009-01-05)

This C# ASP.NET code, run in IIS with Windows Auth & Inpersonation turned on:

using CrystalDecisions.Enterprise;

     //Enterprise Session Manager Variables
     EnterpriseSession mySession;
     SessionMgr mySessionMgr = new SessionMgr();
     String myToken ="";

    //Enterprise Credential Variables
     String apsUser = ""; 
     String apsPassword  = ""; 
     String cmsName = "<CMS>"; 
     String apsAuthType = "secWinAD";


     mySession = mySessionMgr.Logon(apsUser, apsPassword, cmsName, apsAuthType);
     myToken = mySession.LogonTokenMgr.CreateLogonTokenEx("", 120, 100);

digitaldallas :us: (BOB member since 2006-02-27)

What do you do with the token once you have it? How do I pass it to InfoViewApp so that the gets logged?


sohmc :us: (BOB member since 2008-06-25)

R2
http://SERVER:8080/businessobjects/enterprise115/desktoplaunch/InfoView/logon/logon.do?token=

R3
http://SERVER:8080/InfoViewApp/logon/start.do?ivsLogonToken=

However, when I try the R3 version, I get kicked out to a URL that doesn’t exist:
http://SERVER:8080/PlatformServices/PlatformServices/service/app/logon.do


digitaldallas :us: (BOB member since 2006-02-27)

Does this work for IIS or only TomCat?


sohmc :us: (BOB member since 2008-06-25)

I’ve only used it to provide SSO into Java InfoView. Not sure what the .NET path would be, but I’m sure it would be similar, but with a file extension .aspx instead of .do.


digitaldallas :us: (BOB member since 2006-02-27)

Hmm…I’m still getting the same error: Account Information Not Recognized: The user account has been disabled. (FWB 00012)

Also, when I reload the log-in page, the script generates a new token each time. I thought the point of having a token is that there is only one and it is used to log in.


sohmc :us: (BOB member since 2008-06-25)