cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Share DocumentLibrary with iframe

vikash
Champ in-the-making
Champ in-the-making

Hi,

I have requirement to display share Document including Edit it google Doc,Edit in ms-office.for that i am using Iframe

when i have
http://localhost:9090/share/page/document-details?nodeRef=workspace://SpacesStore/ in iframe i always get username and password screen,i want to passed username and password dynamically so not see Login screen when user see doc is it possible

4 REPLIES 4

calvo
Star Collaborator
Star Collaborator

Hi,

The out of the box hehaviour of Alfresco is protect the access with a user and password. Anyway, after user is logged you'll be redirected to the details of the document.

On the other hand, if you want that guest user can access to your document, you must assign permissions. After that, the url will be something like that:
http://localhost:9090/share/page/document-details?nodeRef=workspace://SpacesStore/&guest=true

Anyway, I think isn't a good practice that any user have access to our documents.

Maybe you could develop a "pre-system" to manage this issue. Por example a script that obtain a valid ticket and after that redirect to the details of the document.
http://localhost:9090/alfresco/service/api/login?u=your-user&pw=your-password

If the previous url is correct, we will obtain a valid ticket that we can use to access:
http://localhost:9090/share/page/document-details?nodeRef=workspace://SpacesStore/&ticket=valid-tick...

Regards,

vikash
Champ in-the-making
Champ in-the-making

i  followed your  second  option  to  be  ticket  based  login,but  still  asking  Login  page

vikash
Champ in-the-making
Champ in-the-making

Neither  guest   user  working   in  this   case,it  also  giving Same  login   screen   even  if  i  have   given  Permission  to  access EveryOne  Group

calvo
Star Collaborator
Star Collaborator

Sorry, you are right. "guest=true" not allowed anymore

?guest=true removed 

Maybe you can try SSO system: Configuring external authentication | Alfresco Documentation 

Regards,