We have a Domino web site configured with Multi Server SSO. Configuration options:
-
‘Load Internet configurations from Server\Internet Sites documents’ is Enabled
-
An ‘Internet site document’ has been created for this site
-
A ‘Web SSO Configuration’ document has been configured for this site
We have two servers running this site and can confirm that SSO works across both servers.
So far so good 
If we call the Java method getSession() to return the current SSO token we get the following error:
HTTP JVM: NotesException: Notes error: Creating administration request to create mail file for %A…
After much head scratching we can correct this problem by making the following server configuration changes:
-
Edit Server Configuration document
-
Select ‘basics’ tab
-
Set ‘Load Internet configurations from Server\Internet Sites documents’ to Disabled
-
Select ‘Internet Protocols’ Tab
-
Under ‘Internet Protocols’ select ‘Domino Web Engine’ tab
-
Set ‘Session Authentication’ to ‘Multiple Servers (SSO)’
-
Set ‘Web SSO Configuration’ to ‘LtpaToken testssotoken’
-
Set ‘Load Internet configurations from Server\Internet Sites documents’ to Enabled
-
Save Server Configuration document
Then
-
Click on ‘Create Web’ followed by ‘SSO Configuration’
-
Set ‘Configuration Name’ to be ‘LtpaToken testssotoken’ (so it matches the server configuration entry)
-
Leave ‘organisation’ field BLANK!
-
Fill in valid entries for the other fields
This SSO configuration will appear under the Configuration → Web → Web Configuration view
Now this shouldn’t work because we have set ‘Load Internet configurations from Server\Internet Sites documents’ to Enabled. But it does - getSession() now returns a SSO token.
In fact we get a SSO token regardless of whether SSO has been configured or enabled for the site,
Has anyone else experienced this?
Subject: getSession() method
I’ve seen the Server document conflict with the Internet Site documents. Try this:
On the Server document(s) …
-
Basics > Load Internet config from Internet Sites view = Disabled
-
Domino Web Engine > Session authentication = Multiple Servers (SSO)
-
Domino Web Engine > Web SSO Configuration = clear this field.
-
Domino Web Engine > Session authentication = Disabled
-
Next, change the Basics > Load Internet config from Internet Sites view = Enabled
-
Save the Server document.
Create your Internet Site documents with an “organization”. It should now ignore any SSO settings on the Server document(s).
Subject: RE: getSession() method
Thanks for the response!
I came across this issue as well, it was how I managed to get a ‘working’ configuration. I have tried what you suggested but getSession() breaks I’m afraid 
Getting SSO working isn’t the issue, we can do that quite happily. The problem is eliminating the error when using getSession()
I realise the configuration I described is slightly odd but it is the only way we can solve our issue.
This makes me think getSession() doesn’t work correctly with ‘Load Internet config from Internet Sites view’ enabled.
The config settings I’ve used shouldn’t have any effect but they do. Guess this must be a bug?
Subject: getSessionToken() method
Here is the test code we are using in case anyone is interested:
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
String token = session.getSessionToken();
getAgentOutput().println("Content-Type:text/html");
getAgentOutput().println("SSO token: " + token);
}
catch ( NotesException ne ) {
System.out.println("Error in Get SSO Token");
System.out.println(ne.text);
ne.printStackTrace();
getAgentOutput().println(ne.text);
}
catch(Exception e) {
System.out.println("Error in Get SSO Token");
e.printStackTrace();
}
}
}
Think it is actually the getSessionToken() method that gets the SSO token.