cancel
Showing results for 
Search instead for 
Did you mean: 

Open an alfresco page on a specific space ?

sam69
Champ in-the-making
Champ in-the-making
Hi !
Is it possible to open an alfresco page on a specific space logged as a specific user.
I know it is possible to have a link pointing on a specified space, but logged as a guest. This is great, but I need more.
Do you think it 'is possible to login via Web Services for example and after that to open an alfresco windows on a specific space logged as a specific user ?

Thanks in advance for your response !

PS : After digging more deeply on Alfresco I still find it very amazing 😉
PS2 : sorry for my poor english 😉
11 REPLIES 11

sam69
Champ in-the-making
Champ in-the-making
Up !

Nobody can answer me ?
Or my poor english is incomprehensible 😉

Thanks in advance !

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

When connecting to Alfresco via web services all of the usual security restrictions for a user apply.

You can navigate around a repository and perform actions on spaces and documents via web services, so long as the authenticated user has permissions to do so.

Hope this helps to answer your question,
Roy

sam69
Champ in-the-making
Champ in-the-making
Ok, so my question wasn't explicit 😉

I want to provide a link from my webapp, pointing to an Alfresco space.
And I want to avoid the user to login again (as the user is already logged on my website).
I am aware of the guest access, but I want the user to be logged directly with his alfresco account.

I have found an element of response on this thread :
http://www.alfresco.org/forums/viewtopic.php?t=1169

Some of our clients will buy the Alfresco enterprise version, but I want to provide a basic solution for the community version.
Is there a solution without changing Alfresco's code, because we want to keep up to date with alfresco, without merging our code everyday.

Cheers,

Samuel

sam69
Champ in-the-making
Champ in-the-making
A basic solution for clients without the Enterprise Licence may be to have an External Access URL to a specific space. And if they tick "remember my password", they just have one more click to access to the space.

But in the Alfresco client, I can see an External Access URL only for a specific Space Details (in the tab links).
Is there also an External Access URL to a Browse Spaces view for a specified space ? Because i can't see it in the Alfresco web client.

Thanks in advance !

kevinr
Star Contributor
Star Contributor
Yes there is an External Access URL for exactly that:
http://www.alfresco.org/mediawiki/index.php/URL_Addressability

An example would be:
http://yourserver:8080/alfresco/navigate/browse/workspace/SpacesStore/0000-0000-0000-0000
obviously the correct NodeRef would be used at the end of URL.

You are correct in that only specific pages are supported for access externally, the space details, document details and browse are ones we support now.

Thanks,

Kevin

sam69
Champ in-the-making
Champ in-the-making
Thanks a lot !

I didn't see this wiki page.

By the way, do you plan to add a possibility of autologin for the community version ?

sam69
Champ in-the-making
Champ in-the-making
I have just found this :
http://wiki.alfresco.com/wiki/URL_Addressability#Ticket_URL_Argument
It's great, we can auto login users by requesting a ticket via web service and add it as an URL argument !
thanks Alfresco Smiley Happy

sam69
Champ in-the-making
Champ in-the-making
I tried to provide an URL in order to download a document, protected by a password, with the ticket URL Argument. But i can't make it work Smiley Sad

After reading again this page : http://wiki.alfresco.com/wiki/URL_Addressability#Ticket_URL_Argument

This can then be appended to any servlet URL as the ticket argument to provide authentication without login, for example:

/alfresco/download/attach/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf?ticket=1234567890
It's look like it's only for servlet URL. What does it means ? It's not possible to provide a link like
http://myserver:8080/alfresco/download/attach/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf?ticket=1234567890

I know the ticket has a limited life, but it would be great if this kind of autologin is available in Alfresco.

Cheers,
Samuel

kevinr
Star Contributor
Star Contributor
If you retrieve a valid ticket using the WebServices API, then yes it should work if you append the ticket value to the URL - it works on any of the servlets in Alfresco.

Thanks,

Kevin