cancel
Showing results for 
Search instead for 
Did you mean: 

Bypass login page for InfoView in BOE 3.0

Former Member
0 Kudos

Hi

Could anyone let me know how to redirect to a user's home page on InfoView panel directly without the login page coming in between for BOE 3.0. This functionality is currently working fine for BOE 2.0 as I am passing user credentials as name , value pair.

I am not aware how to pass user credentials in the URL for BOE 3.0 infoview and bypass the loging page. I am working on Single Sign On

Cheers

Nissar

Accepted Solutions (1)

Accepted Solutions (1)

aasavaribhave
Advisor
Advisor
0 Kudos

Hi,

Create a Logon Token using Java SDK and pass it in the following URL . The token will bypass Infoview logon and will launch the Infoview homepage for the user that you logged on as while creating token.

http://<server name>:<port>/InfoViewApp/logon/start.do?ivsLogonToken=;logon token>

Thanks

Aasavari

Former Member
0 Kudos

Hi

I tried this but still it takes me to the logon page. Any other suggestions please!

ted_ueda
Employee
Employee
0 Kudos

You're not providing sufficient information to help - how were you passing the credentials as name-value pair previously?

Sincerely,

Ted Ueda

Former Member
0 Kudos

Hi Ted

This is the url that was getting formed in 2.0

http://grb-ldslxp008:8060/InfoViewApp/logon/start.do?ivsEntSessionVar=boEntSession&BOUSER=2664784300...Rts DickRCD

here value of BOUSER is the account name that I am extrating in a filter and logging in

Do you want some more info. plz let me know

ted_ueda
Employee
Employee
0 Kudos

Filter - is that your own filter that you've registered with InfoView?

What is the filter doing?

It might not be effiicient to dribble out info like this - more info would be helpful.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Hi

This is my own filter thats creating the user session and also maintaing a list of user sessions. I feel I have figured out the problem now. will post you in a few minutes.

ted_ueda
Employee
Employee
0 Kudos

Hope it works!

Here's another data point, if you're looking to use the serialized EnterpriseSession entry point (new with XI 3.0):

[https://boc.sdn.sap.com/node/18872]

Sincerely,

Ted Ueda

Former Member
0 Kudos

Thanks a lot Ted. Because of your quizing I reached a point in my code where I had made the mistake. Now my problem is solved.

Cheers

Nissar

Answers (2)

Answers (2)

Former Member
0 Kudos

Ted,

Could you please provide me with the correct link that you were pointing to in your reply

../../..nodes/18872

former_member283957
Participant
0 Kudos

Hi Vishal,

How to create a logon page for InfoView with hardcoded username and password

I have developed this code below but it does not work, let me know how to fix

Thanks in advance.

Antonio

<%@ page contentType="text/html; charset=utf-8" %>

<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>

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

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

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

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

<%@ page import="java.io., java.net., javax.servlet., java.util."%>

{

String authMethod = "secEnterprise";

/* Log on using the Enterprise SDK */

String userID = "curso_2013";

String userPwd = "Curso2013&&";

String cmsName = request.getServerName()+":6400";

try {

IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(userID, userPwd, cmsName, authMethod);

session.setAttribute("EnterpriseSession", enterpriseSession);

IInfoStore iStore = (IInfoStore)enterpriseSession.getService("InfoStore");

session.setAttribute("InfoStore", iStore);

String logonToken = enterpriseSession.createLogonToken();

String openDocURL="http://xp-sp3-limpio:8080/InfoViewApp/logon/start.do?ivsLogonToken=" + logonToken;

response.sendRedirect(openDocURL);

} catch(Exception e) {

out.println("Error: User, Password or CMS name is wrong or Not all parameters sent by URL");

}

}

No se puede compilar la clase para JSP Error de servlet generado: Syntax error on token ".", Identifier expected after this token Error de servlet generado: Syntax error on token ".", Identifier expected after this token Error de servlet generado: Syntax error on token ".", Identifier expected after this token Error de servlet generado: Syntax error on token ".", Identifier expected after this token Ha tenido lugar un error en la línea: 15 en el archivo jsp: /logonpruebaok2.jsp Error de servlet generado: The method createLogonToken() is undefined for the type IEnterpriseSession

ted_ueda
Employee
Employee
0 Kudos

How are you passing the logon credentials as a name-value pair?

Sincerely,

Ted Ueda