Search the FirstSpirit Knowledge Base
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.
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
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
Thank you Holger,
that is exactly what I was supposed to do.