Skip to Content
avatar image
Former Member

Bypass login page for InfoView in BOE 3.0

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 15, 2008 at 01:11 PM

    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:// : /InfoViewApp/logon/ start.do?ivsLogonToken=;logon token>

    Thanks

    Aasavari

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 15, 2008 at 01:14 PM

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

    Sincerely,

    Ted Ueda

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 12, 2011 at 06:24 AM

    Ted,

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

    ../../..nodes/18872

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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