this issue is not specific for Xpages, but since I invoke the function from a .xsp , so maybe I should post the question here
My goal is programtically adding a domino user in a external domino directory, then automatically log in this user by generating a LtpaToken using this users shortName or internetAddress
souce code that I use for creating a LtpaToken comes from here
The issue I am facing is:
After creating a new user in external directory, if I use a xhr.post for log in, it works
"username" : userName,
"password" : password
but if I try to generate a token manually for this user, even though user becomes "log in" user immediately, Domino could not identify this user as a real user at the beginning, untill 50 to 60 seconds pass by.
com.ibm.designer.runtime.directory.impl.DirectoryUserImpl user = (com.ibm.designer.runtime.directory.impl.DirectoryUserImpl) o;
fullname and mail returns null within the first minute
so the log in process with xhr.post must have a extra step more than generating the LtpaToken, so the log in user is really regonized as a real domino user immediately (not after 50-60 seconds)
my question is, what is that extra step?
(new user is added, hashPassword, verifyPassword works.....log in with xhrpost works, but log in with token delays by more or less one minute)
(People and User View are refreshed as well before generating the token)