简体   繁体   English

是否可以将install4j HTTP凭据对话框用于自定义操作?

[英]Is it possible to use the install4j HTTP credential dialog for custom actions?

I need to write a custom rest client to be able to handle single-sign-on authentication in some purposes. 我需要编写一个自定义的rest客户端,以便能够出于某些目的处理单点登录身份验证。 The client has to decide whether to use sso or basic authentication. 客户端必须决定使用sso还是基本身份验证。 For the basic authentication a dialog should appear and the user will be asked for the credentials. 对于基本身份验证,应出现一个对话框,并要求用户提供凭据。 In install4j there already exists such a dialog and I wonder whether I can reuse this dialog to get the credentials and set these to the custom rest client? 在install4j中已经存在这样的对话框,我想知道是否可以重用此对话框来获取凭据并将其设置为定制的rest客户端?

That information is not saved, so you cannot retrieve it later. 该信息不会保存,因此您以后无法检索。 Conversely, you could set the system properties "serverAuthUser" and "serverAuthPassword", so install4j would use this for authentication and the password dialog would not be shown. 相反,您可以将系统属性设置为“ serverAuthUser”和“ serverAuthPassword”,因此install4j会将其用于身份验证,并且不会显示密码对话框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM