I have a website from which you connect with your login/password, each user then have a xwiki user associated to his account.
I would like this user to click on a link that would redirect to my xwiki and authenticate him at the same time with his xwiki login/password.
Which user authentication would be the best ?
I have tried basic authentication but login and password would not be encrypted and that is another problem.
You mean there is an actual XWiki user in the XWiki database with the same login/pass than the one used in that website ?
So if I understand well what want is automatic authentication to the wiki when coming from that website even when the user never authenticated to XWiki explicitly, right ?
The login/password from XWiki is not necessarily the same as the one from my website. And I forgot to mention that a user from my website can have multiple logins on XWiki (what I want is to have multiple links which redirect to the XWiki but with different rights, that is why my user can have multiple XWiki users associated to his account).
If I want to work with a cookie, I would then need to modify the cookie each time the user click on a XWiki link to be sure he is using the right XWiki user.
Do you think that using cookie would still be the best solution ?
I am also trying to directly authenticate using the login url in xwiki .
Can anyone let me how can i directly login using post method by giving user id and password ?
API url ?