How to use Share DocumentLibrary with iframe

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

How to use Share DocumentLibrary with iframe

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
Highlighted
Senior Member

Re: How to use Share DocumentLibrary with iframe

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,

Highlighted
Member II

Re: How to use Share DocumentLibrary with iframe

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

Highlighted
Member II

Re: How to use Share DocumentLibrary with iframe

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

Highlighted
Senior Member

Re: How to use Share DocumentLibrary with iframe

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

?guest=true removed 

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

Regards,