cancel
Showing results for 
Search instead for 
Did you mean: 

Using ticket for authentication

jtremb95
Champ in-the-making
Champ in-the-making
We are currently using Alfresco’s Webservice API. Is it possible to get authentication using just a ticket? The class I’ve been using so far is AuthenticationUtils. It looks to me as if it will only work with id and password. Is their another way using just a ticket number?

Thank you for your help.
4 REPLIES 4

openpj
Elite Collaborator
Elite Collaborator
Is their another way using just a ticket number?
You could use WebScripts, because you can use the alf_ticket parameter in the query string to put the Ticket value.

Hope this helps.

colindstephenso
Champ in-the-making
Champ in-the-making
Is it possible to use the authenticated ticket returned from the webscript to initiate a webservice session?  I tried using username, and ticket as the password but this fails

Regards,
Colin.

hsohaib
Champ on-the-rise
Champ on-the-rise
try :


AuthenticationDetails auth = new AuthenticationDetails(userName, ticket, sessionId);
        AuthenticationUtils.setAuthenticationDetails(auth);

colindstephenso
Champ in-the-making
Champ in-the-making
try :


AuthenticationDetails auth = new AuthenticationDetails(userName, ticket, sessionId);
        AuthenticationUtils.setAuthenticationDetails(auth);

Awesome hsohaib - I pass in null for the sessionId and this looks like it does the trick. Thanks!