public WebIServerSession getWebIServerSession(
RequestKeys reqKeys,
ContainerServices cntSvcs)
{
System.out.println("Method call : getWebIServerSession called") ;
WebIServerSession isess = null ;
WebObjectsFactory myWebObjFactory = WebObjectsFactory.getInstance() ;
//myWebObjFactory.
isess = WebObjectsFactory.getInstance().getIServerSession() ;
isess.setServerName("server") ;
isess.setAuthMode(com.microstrategy.webapi.EnumDSSXMLAuthModes.DssXmlAuthLDAP) ;
isess.setServerPort(0);
// isess.setProjectName("Project 1" );
isess.setLogin( "username") ;
isess.setPassword( "password") ;
return isess ;
}
public int handlesAuthenticationRequest(
RequestKeys reqKeys,
ContainerServices cntSvcs,
int reason) {
System.out.println("Method Call : handled Authentication Request") ;
//return super.handlesAuthenticationRequest(reqKeys, cntSvcs, reason);
return ExternalSecurity.COLLECT_SESSION_NOW ;
}
I commented the project line and used standard authenciation mode. However the main page got after logging into the system showed several projects and on clicking any of the projects shown it redirected me to the login screen wherein I need to enter the userid and password. However when I passed the project name that the user is authorised for, it allowed me to login to the project.
Has anybody else faced this issue before?
Thanks for the reply
RequestKeys reqKeys,
ContainerServices cntSvcs)
{
System.out.println("Method call : getWebIServerSession called") ;
WebIServerSession isess = null ;
WebObjectsFactory myWebObjFactory = WebObjectsFactory.getInstance() ;
//myWebObjFactory.
isess = WebObjectsFactory.getInstance().getIServerSession() ;
isess.setServerName("server") ;
isess.setAuthMode(com.microstrategy.webapi.EnumDSSXMLAuthModes.DssXmlAuthLDAP) ;
isess.setServerPort(0);
// isess.setProjectName("Project 1" );
isess.setLogin( "username") ;
isess.setPassword( "password") ;
return isess ;
}
public int handlesAuthenticationRequest(
RequestKeys reqKeys,
ContainerServices cntSvcs,
int reason) {
System.out.println("Method Call : handled Authentication Request") ;
//return super.handlesAuthenticationRequest(reqKeys, cntSvcs, reason);
return ExternalSecurity.COLLECT_SESSION_NOW ;
}
I commented the project line and used standard authenciation mode. However the main page got after logging into the system showed several projects and on clicking any of the projects shown it redirected me to the login screen wherein I need to enter the userid and password. However when I passed the project name that the user is authorised for, it allowed me to login to the project.
Has anybody else faced this issue before?
Thanks for the reply