cancel
Showing results for 
Search instead for 
Did you mean: 

unable to use alf_ticket

coenvermeij
Champ in-the-making
Champ in-the-making
I want to download content from alfresco using the URL without having to login. so i tried to use a ticket but i still need to log in.

What i am doing is "http://localhost:8280/alfresco/service/api/login?u=admin&pw=admin',i get a ticket back,
but when i try to use the ticket like: "http://localhost:8280/alfresco/d/d/workspace/SpacesStore/c3b5c30d-48b0-4609-b1b6-a0296ff5a76d/filena...<ticket here>", i still get a login screen.

Can someone please help me?
9 REPLIES 9

snig
Champ in-the-making
Champ in-the-making
CoenVermeij

I am stuck with the same issue, have you got any solution for that?

coenvermeij
Champ in-the-making
Champ in-the-making
so i've found my problem:

i use "alfresco/service" to login and then "alfresco/d" to try and download the file.

for some reason my ticket isn't recognized in a different service. still searching for a solution.

mikeh
Star Contributor
Star Contributor
Try "?ticket=" for the download servlet - there may be some inconsistency with the parameter name.

Mike

coenvermeij
Champ in-the-making
Champ in-the-making
Yes! this did it. Thank you.

jgalan
Champ in-the-making
Champ in-the-making
Thanks MikeH!

sgomez
Champ in-the-making
Champ in-the-making
Please allow me to revive this thread  Smiley Surprisedops: I had a similar problem with authenticating through an iframe using ?alf_ticket, so I tried ?ticket instead and got it to work.  I also changed my service path from "service/etc" to "wcservice/etc."

What I am confused about is the difference between alf_ticket and ticket.  Could someone please explain the difference between the two?  I tried looking through the wiki and also the forums but found nothing explaining the difference except for a similar post where it was suggested to add the ?ticket in the URI call.  It would be great to know for future reference.  Thanks in advance!

-Sonny

mikeh
Star Contributor
Star Contributor
For /service use alf_ticket, for /wcservice use ticket.

Thanks,
Mike

jabailo
Champ in-the-making
Champ in-the-making
Using Firefox, I have been unable to access my document either with alf_ticket= or ticket= in the URL.

My process is, from Firefox, is request a ticket using:

http://alfresco.myserver.com/alfresco/s/api/login?u=admin&pw=admin

Then try to access the document using:

http://alfresco.myserver.com/alfresco/d/d/workspace/SpacesStore/44bd5971-2079-440d-8d00-9003a20b2e4e...?alf_ticket=TICKET_4b281033bd84125990e267e17f262fd13d8341c3

I also tried:

http://alfresco.myserver.com/alfresco/d/d/workspace/SpacesStore/44bd5971-2079-440d-8d00-9003a20b2e4e...?ticket=TICKET_4b281033bd84125990e267e17f262fd13d8341c3


In both cases, the login authentication page appeared.  If I entered my admin username and password, I could access the document.

I used the same browser and session to request the ticket and to try and access the document.

I am using the free trial version of Enterprise Alfresco.

louisebennett
Champ in-the-making
Champ in-the-making
Did you ever work out how to get it to work, jabailo? I'm having the same problem and could use some help!