直接从Alfresco访问文件/内容,无需登录 [英] Access file/content directly from Alfresco without log in

查看:108
本文介绍了直接从Alfresco访问文件/内容,无需登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的情况是这样。

我有一个Web应用程序,该应用程序使用ALFRESCO CMS显示文件或图像。
我正在做的是我使用Java servlet中的用户名和密码登录到露天仓库,并且可以获得该登录的票证。但是我无法使用该票证直接从浏览器访问文件/图像。当我从浏览器启动URL(带有票证)时,它会转到露天登录页面以获取凭据。

I am having a web application which uses the ALFRESCO CMS to display files or images. What I am doing is I login to alfresco using username and password in a Java servlet and I can able to get a ticket for that login. But I could not able to access the file/image from browser directly with that ticket. When I launch the url (with ticket) from the browser it goes to alfresco login page for credentials.

我们是否可以通过任何方式以编程方式登录露天并获得票证,并使用该票证在浏览器中直接显示文件/内容 。 (注意:我不想通过GET传递用户名和密码)

Do we have any way to login to alfresco programmatically and get the ticket and show the file/content directly in browser using that ticket. (Note: I do not want to pass the username and password via GET)

请帮助。
提前致谢。

Please help. Thanks in Advance.

推荐答案

您可以按照 Wiki 页,以url作为参数。

You can do that following this Wiki page providing the url as a parameter.

例如像


/alfresco/download/direct/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf?ticket=1234567890

/alfresco/download/direct/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf?ticket=1234567890

或者简称


/ alfresco / d / d / workspace / SpacesStore / 0000-0000-0000-0000 / myfile.pdf?ticket = 1234567890

/alfresco/d/d/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf?ticket=1234567890

这篇关于直接从Alfresco访问文件/内容,无需登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆