cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Share from external application with Token

enrico_it
Champ in-the-making
Champ in-the-making
Hi!

I'd like to open share's document library from an external application, using an alfresco token (We work with alfresco 4.2d).
The external application uses Alfresco's webscripts for authentication.
From what I got from similar posts in the forum, Share doesn't understand the token passed as URL parameter.
If I didn't get wrong, I have the following possibilities:
1) Write a filter for share to read the token from the url, and configure it in the share-config-custom.xml
2) Get a SSO provider
3) enable SSO in Share and send login informations in header

The solution 2 is for me impossible, but solutions 1 and 3 looks would look quite promising.
Did I get it right, or am I missing something?

Thanks for the inputs!

E.

2 REPLIES 2

niketapatel
Star Contributor
Star Contributor
I would suggest to enable external authentication.This would allow alfresco to accept external authentication token
From your external application, You can set logged in user as Proxy user and this username will be carried through HTTP header.

Other option, You can do is Pre-authorized call using alf_ticket in your webscript URL.

enrico_it
Champ in-the-making
Champ in-the-making
Thank you for your reply.
the alf_ticket method works well when you need to authorization with webscripts, but It doesn't work if you want to open Share's document library or another share's page.
I think I will try the external authentication way.
Thanks!