Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Single Sign On

Status
Not open for further replies.

mstrgroup

Technical User
Oct 15, 2004
4
IN
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

 
How is Web setup? "Login first then show project" or "show all projects"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top