civca
Returning Observer

Login ticket for specific user

Jump to solution

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.

1 Solution

Accepted Solutions
hoebbel
Crownpeak employee

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

View solution in original post

2 Replies
hoebbel
Crownpeak employee

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

civca
Returning Observer

Thank you Holger,

that is exactly what I was supposed to do.

0 Kudos