Skip to Content
0
Nov 21, 2016 at 06:50 PM

How to bypass BI launchpad logon page in BO 4.2

4276 Views

Hello,

I need to bypass the BI launchpad logon page to implement a SSO. I achieved it in the BO 4.1 version by using and adapting the custom.jsp page, but the same code does not work for BO4.2 (it opens a white page and nothing else). Could you please, tell me if there is something different (maybe in the way to use the logon token library) in BO4.2 that makes it not to work?

Thank you very much. I inlucde the code of custom.jsp:

<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
<%@ page import="com.crystaldecisions.sdk.framework.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.security.*"%>
<%@ page import="java.net.*"%>
<%@ page import="com.crystaldecisions.enterprise.*"%>
<%@ page import="com.crystaldecisions.sdk.plugin.admin.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="com.businessobjects.webutil.Encoder" %>


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>


<%
//BO Session and redirect to Infoview
IEnterpriseSession enterpriseSession;

/* * Set Enterprise Logon credentials. */
final String BO_CMS_NAME = "cdt-bo:6400";
final String BO_AUTH_TYPE = "secEnterprise";
final String BO_USERNAME = "user";
final String BO_PASSWORD = "pass";
ILogonTokenMgr logonTokenMgr;
String defaultToken = "";

/*
* Log onto Enterprise
*/
boolean loggedIn = true;
try {
//Create session token
enterpriseSession = CrystalEnterprise.getSessionMgr().logon(BO_USERNAME,BO_PASSWORD, BO_CMS_NAME,BO_AUTH_TYPE);
logonTokenMgr = enterpriseSession.getLogonTokenMgr();
defaultToken = logonTokenMgr.createWCAToken("", 20, 1);

//Redirect with token attached to the ivsLogonToken parameter
response.sendRedirect("

"http://172.24.56.210:8080/BOE/BI/logon/start.do?ivsLogonToken="+Encoder.encodeURL(defaultToken));
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

</body>

</html>