06-11-2017 03:18 AM
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
06-12-2017 04:08 AM
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,
06-12-2017 04:21 AM
i followed your second option to be ticket based login,but still asking Login page
06-12-2017 08:52 AM
Neither guest user working in this case,it also giving Same login screen even if i have given Permission to access EveryOne Group
06-16-2017 04:56 AM
Sorry, you are right. "guest=true" not allowed anymore
Maybe you can try SSO system: Configuring external authentication | Alfresco Documentation
Regards,
Explore our Alfresco products with the links below. Use labels to filter content by product module.