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

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

问题描述

我开发了位于基于HTTP安全的Web服务器上的Java Web Start的应用程序。
有一次我登录到网页发动我的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.

如果我没看错,这是因为它试图访问另一个罐子。

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"

感谢您的帮助。

推荐答案

大概是因为用户代理HTTP请求头是不一样的。

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

当您浏览到您的Web开始页,您的浏览器发送与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天全站免登陆