on 09-15-2008 1:38 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ted
This is the url that was getting formed in 2.0
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,
Could you please provide me with the correct link that you were pointing to in your reply
../../..nodes/18872
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
How are you passing the logon credentials as a name-value pair?
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.