网站SVN用户认证
问题: 我们网站上的许多用户没有我们的 SVN 存储库帐户。每当我们使用如下标记创建指向 SVN 文档的链接时:
<a href="https://documentURL/document.pdf">View Document</a>
单击该链接的用户必须在弹出的对话框中输入身份验证信息。
我们的解决方案: 我们创建了一个有限访问帐户,对某些文档具有只读功能。我们将 Java SVNKit 库集成到 ColdFusion 网站中,并使用有限访问帐户凭据登录 SVN。
需要帮助: 使用受限访问帐户登录 SVN 不会阻止出现身份验证对话框。有什么方法可以防止出现此对话框,同时仍然只向用户提供我们受限访问帐户的访问级别?
谢谢
Problem:
Many users on our website do not have accounts for our SVN repository. Whenever we create a link to an SVN document using markup like this:
<a href="https://documentURL/document.pdf">View Document</a>
users who click the link must enter authentication information into a pop-up dialog box.
Our solution:
We have created a limited access account with read-only capabilities for certain documents. We integrated the Java SVNKit library into our ColdFusion website and we log in to SVN using our limited access account credentials.
Help needed:
Being logged-in to SVN with the limited access account does not prevent the authentication dialog box from appearing. Is there any way to prevent this dialog box from appearing while still only giving users the access level of our limited access account?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我建议您查看Sventon。 Sventon 是一个基于网络的 Subversion 浏览器,它可以满足您的大部分需求。例如,您可以对其进行设置,以便 Sventon 将登录到有效帐户并允许 Sventon 用户进行只读访问。
您还可以将 Sventon 设置为允许下载文件(这完全是可选的),以便没有 Subversion 访问权限的用户可以下载文件。 (这不检出文件,因为这不会创建工作目录或允许您进行更改)。
Sventon 使用 Jira 和 Jenkins 等软件,这可能正是您真正需要的。
I recommend you look at Sventon. Sventon is a web-based Subversion browser which will do much of what you need. For example, you can set it up, so the Sventon will log into a valid account and allow users of Sventon read-only access.
You can also setup Sventon to allow downloads of files (this is strictly optional), so users without Subversion access can download the files. (This is not checking out the files since this creates no working directory or allows you to make changes).
Sventon works with software like Jira and Jenkins which might be exactly what you really need.
您是否研究过匿名 SVN 访问?
Have you looked into Anonymous SVN access?
使用 cfcontent 获取文件并提供服务。您可以将任何 Coldfusion 逻辑包装在
cfcontent
调用周围,以保护您的机密文档。Use
cfcontent
to grab the file and serve it up. You can wrap any coldfusion logic around thecfcontent
call to protect your classified documents.我要感谢大家对此提供的帮助。我已经找到了解决方案。在 URL 中,您可以按以下格式输入身份验证信息: http://user:password@server :80/path
在这里了解更多信息:http://www.rojotek.com/blog/2008/05/19/http-authentication-in-a-url/
I'd like to thank everyone for their help on this. I have found the solution. In the URL you are able to enter the authentication information in the following format: http://user:password@server:80/path
Read more about it here: http://www.rojotek.com/blog/2008/05/19/http-authentication-in-a-url/