无需登录即可直接从 Alfresco 访问文件/内容

编程入门 行业动态 更新时间:2024-10-25 12:21:18
本文介绍了无需登录即可直接从 Alfresco 访问文件/内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的场景是这样的..

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

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.

我们有没有办法以编程方式登录 alfresco 并获取票证并使用该票证在浏览器中直接显示文件/内容.(注意:我不想通过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)

请帮忙.提前致谢.

推荐答案

你可以按照这个提供 URL 作为参数的 Wiki 页面.

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 访问文件/内容

本文发布于:2023-11-28 09:30:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641855.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   内容   Alfresco

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!