作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我遇到了与这里完全相同的问题:Jira user creation via REST results in 401 - This resource requires WebSudo 。但是,就我而言,我想与 Java Http Client 连接。
我已经检查了文档并尝试:
将凭据放入 header
{
final String encoding = Base64.getEncoder().encodeToString((SERVICE_DESK_ADMIN + ":" + SERVICE_DESK_ADMIN_KEY).getBytes("UTF-8"));
httpPost.setHeader(HttpHeaders.AUTHORIZATION, "Basic " + encoding);
}
尝试实现此处描述的抢先授权:HttpClient Basic Authentication
在这两种情况下,我从服务器得到了相同的响应:
{
"message" : "This resource requires WebSudo.",
"status-code" : 401
}
在抢占式情况下,我在日志中发现了如下内容:
2020/03/03 16:41:45:774 CET [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2020/03/03 16:41:45:774 CET [DEBUG] HttpAuthenticator - Authentication required
2020/03/03 16:41:45:774 CET [DEBUG] HttpAuthenticator - <here_is_address>:443 requested authentication
2020/03/03 16:41:45:774 CET [DEBUG] TargetAuthenticationStrategy - Authentication schemes in the order of preference: [Negotiate, Kerberos, NTLM, CredSSP, Digest, Basic]
2020/03/03 16:41:45:774 CET [DEBUG] TargetAuthenticationStrategy - Challenge for Negotiate authentication scheme not available
2020/03/03 16:41:45:774 CET [DEBUG] TargetAuthenticationStrategy - Challenge for Kerberos authentication scheme not available
2020/03/03 16:41:45:774 CET [DEBUG] TargetAuthenticationStrategy - Challenge for NTLM authentication scheme not available
2020/03/03 16:41:45:774 CET [DEBUG] TargetAuthenticationStrategy - Challenge for CredSSP authentication scheme not available
2020/03/03 16:41:45:774 CET [DEBUG] TargetAuthenticationStrategy - Challenge for Digest authentication scheme not available
2020/03/03 16:41:45:774 CET [DEBUG] TargetAuthenticationStrategy - Challenge for Basic authentication scheme not available
我的问题是:
最佳答案
这是我的问题的答案:
我选择了第二个解决方案,现在它的效果非常好。
关于java - Jira ServiceDesk 用户创建 - 此资源需要 WebSudo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60511082/
Atlassian JIRA 的 Service Desk 插件门户有一个丑陋的 URL,用户必须记住这个长 URL http://jira.domain.com/servicedesk/custom
我遇到了与这里完全相同的问题:Jira user creation via REST results in 401 - This resource requires WebSudo 。但是,就我而言,
我正在进行渗透测试,我已经创建了一个 war 文件,我正在尝试在 manageengine 的服务台 plus 中自动部署它。我的问题是 当我把war文件放进去的时候 C:\ManageEngine\
我是一名优秀的程序员,十分优秀!