Login ticket for specific user
Author: civca
Publication Date: 4/29/2020 15:48
How can I create login ticket for specific user account?
I need to create link to specific page and send that link to specific user, and when that user clicks on link he needs to be automatically logged in.
When I tried to create login ticket with this
loginTicket = context.getConnection().createTicket(false);
I am getting login ticket for my account.
-
Author: hoebbel - 5/5/2020 10:44
Hello Milos,
you can only create a ticket for the user of the appropriate connection.
To create a ticket for another user, you have to create a connection for that user first (you need the credentials for that user) and you can use that connection afterwards to create the login ticket.
Otherwise it would be possible to simply access the FirstSpirit server with another user
Hint:
de.espirit.firstspirit.access.ConnectionManager
Best regards,
Holger
0 -
Author: civca - 5/11/2020 13:13
Thank you Holger,
that is exactly what I was supposed to do.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare