Hello!
I am having a problem with SSO. My Domino Server uses Internet Site Configuration. The SSO works properly between several databases, so i think, it is configured well.
I have a Java Servlet running on the server that receives the LtpaToken. If I open a new session in my code it opens a “Anonymous” connection, instead of the user, which created the token. I do not understand why this happens?! If I switch to web configuration everything works fine. It seems to be a problem only if I use Internet Sites, which is mandatory in my case.
Any ideas?
Code:
[…] NotesThread.sinitThread();
Session session = NotesFactory.createSession(null, sessionToken);
if (session.isValid()) {
System.out.println("Session created with token, username: "
+ session.getUserName());
}
Output:
31.05.2010 15:41:46 HTTP JVM: ### SSO TEST BEGIN ###
31.05.2010 15:41:46 HTTP JVM: Session Token found: AAECAzRDMDNCQzhFNEMwM0NBOUVDTj1BZG1pbi9PPUNlZHJvc0RlbW8jI+YzgHPCuWxYNvy9ieOhkh89fg==
31.05.2010 15:41:46 HTTP JVM: Remote user: CN=Admin/O=CedrosDemo
31.05.2010 15:41:46 HTTP JVM: Session created with token, username: Anonymous
(The “Remote user” is: user = req.getRemoteUser(); out of the HttpServletRequest)