I'm really struggling with implemting SSO for my 2 webapps... I've done all that is said in the documentation pages of tomcat. For some reason, tomcat is not linking the 2 web-apps with SSO.
When I try to reach from one web-app to the other, its repeatedly showing the login screen.
Please help...
This is my server.xml file...
<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8080" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="root" connectionPassword="password"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
<Host name="localhost" appBase="webapps" >
<Valve className="org.apache.catalina.authenticator.SingleSignOn" debug="2"/>
<Context displayName="Brown-SSO Application" docBase="brown-sso" path="/brown-sso" workDir="work\Catalina\localhost\brown-sso">
</Context>
<Context displayName="Blue-SSO Application" docBase="blue-sso" path="/blue-sso" workDir="work\Catalina\localhost\blue-sso">
</Context>
</Host>
</Engine>
</Service>
</Server>
When I try to reach from one web-app to the other, its repeatedly showing the login screen.
Please help...
This is my server.xml file...
<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8080" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="root" connectionPassword="password"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
<Host name="localhost" appBase="webapps" >
<Valve className="org.apache.catalina.authenticator.SingleSignOn" debug="2"/>
<Context displayName="Brown-SSO Application" docBase="brown-sso" path="/brown-sso" workDir="work\Catalina\localhost\brown-sso">
</Context>
<Context displayName="Blue-SSO Application" docBase="blue-sso" path="/blue-sso" workDir="work\Catalina\localhost\blue-sso">
</Context>
</Host>
</Engine>
</Service>
</Server>