cancel
Showing results for 
Search instead for 
Did you mean: 

Login into Share with ticket

lpgc
Champ in-the-making
Champ in-the-making
Hi all,

Im trying to login into Share without having to specify user&password (i have both from a previous login). Ive tried the ticket method but it doesnt work:

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

… it gives me ticket and then i try …

http://localhost:8080/share/page/type/login?alf_ticket=TICKET_4ce013256b377b5d5a57207d4468864a601b9a...

But it doesnt work Smiley Sad

Any siggestions?

Thanks in advance Smiley Happy

4 REPLIES 4

rjohnson
Star Contributor
Star Contributor
So far as I am aware it doesn't work that way. You call the login form with a UID & PWD, that gives you a ticket and you then append the ticket to your URL as a parameter to execute Alfresco API "functions" as you require with the authority of the UID/PWD that you logged in with. You don't "login" with a ticket. Also tickets have a defined life (this is a parameter) and will timeout (I think the default is 30 minutes).

Bob Johnson

lpgc
Champ in-the-making
Champ in-the-making
Thanks for the advice 🙂

I tried forcing a form submit and it works; you can even set the landing page (<input name="success" value="URL" type="hidden">). I guess i just wanted to do something "more professional" that matched better in my development.

morganp1
Confirmed Champ
Confirmed Champ
Hi,

Can you explain the steps to automatically submit the form with the required information? It could be interesting for a lot of people I think. Thanks

srivastava123
Champ in-the-making
Champ in-the-making
I am not sure that this approach will work for successful login or not but this approach gives you the ability to access the contents present in the repository and hence you can present them for display or download to any UI. No password prompt will appear this way.

Thanks.