cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke share webscript from external software in a authenticated way

3acascia
Champ in-the-making
Champ in-the-making
Hi All,

is it possibile to invoke custom web script from external software in a authenticated way?
How to deal with authentication mechanism?
As I understood, Alf_ticket seems to be not recognized from Share…
Is cookie (JSESSIONID) the only allowed mechanism?

Thanks in advances,
Toma

3 REPLIES 3

michaelböckling
Champ in-the-making
Champ in-the-making
Hi,

it depends what you try to do. You can use SSO with NTLM or Kerberos, or obtain a ticket via the http://alfrescoserver/alfresco/s/api/login API, but in that case you need the password.
What you want is the ticket, not necessarily the JSESSIONID.

Cheers,
Michael

3acascia
Champ in-the-making
Champ in-the-making
Hi Michael,
thanks you for your reply.
What I want to try to do, is call a site-webscript declared in Share in an authenticated way using alf_ticket obtained invoking http://alfrescoserver/alfresco/s/api/login.
It seems that it doesn't work…

Thanks in advance,
Toma

Hi Toma,

does this work:

1. call:
http://localhost:8080/alfresco/service/api/login?u=admin&pw=admin

2. extract the ticket (looks like TICKET_29ced6613a114294fa4bb9e67bf663112076f3d9)

3. validate the ticket: http://localhost:8080/alfresco/service/api/login/ticket/TICKET_29ced6613a114294fa4bb9e67bf663112076f...

Do you get 200/OK response? Can you call other repository webscripts with that ticket?

Best regards,
Michael Böckling