Java Web Start 不断要求进行身份验证 [英] Java Web Start keeps asking to authenticate

查看:31
本文介绍了Java Web Start 不断要求进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个 Java Web Start 应用程序,该应用程序位于基于 HTTP 安全性的 Web 服务器上.一旦我登录到网页以启动我的 Java Web Start 应用程序,该应用程序就会再次要求我进行身份验证,即使我勾选了将此密码保存到密码列表",它也会再次提示此身份验证对话框.

I developed a Java Web Start app that lies on a web server based on HTTP security. Once I log in to the web-page for launching my Java Web Start application, the app is asking me again to authenticate, and even if I tick the "save this password to the password list" it is prompting again this authentication dialog.

如果我没记错,那是因为它正在尝试访问其他 jar.

If I am not wrong, this is because it's trying to access the other jars.

我想知道是否有一种方法可以自动定义或传递身份验证用户名和密码以摆脱这个烦人的功能"

I was wondering if there is a way for defining or passing the authentication username and password automatically to get rid of this annoying "feature"

感谢您的帮助

推荐答案

可能是因为User-Agent HTTP请求头不一样.

Probably because the User-Agent HTTP request header is not the same.

当您浏览到您的 Web Start 页面时,您的浏览器会向 HTTP 服务器发送一个请求用户代理:无论你使用什么浏览器

When you browse to your Web Start page, your browser sends a request to the HTTP server with User-Agent: whatever browser you are using

当 JRE 请求从 HTTP 服务器下载 JAR 时,它发送一个请求用户代理:您使用的任何 Java 版本

When the JRE requests the JARs to be downloaded from the HTTP server, it sends a request with User-Agent: whatever java version you are using

从 HTTP 服务器的角度来看,这是 2 个不同的客户端,因此系统会提示您两次输入凭据.

From the perspective of the HTTP server, these are 2 distinct clients and therefore you are prompted twice for credentials.

这篇关于Java Web Start 不断要求进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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