【问题标题】:How can I authenticate JasperReports Server as part of link or bypass authentication如何将 JasperReports 服务器作为链接的一部分进行身份验证或绕过身份验证
【发布时间】:2016-03-26 11:13:25
【问题描述】:

我正在使用 JasperReports Server Web 服务通过链接访问报告。例如:

http://localhost:8080/jasperserver/rest_v2/reports/reports/Statement.html?customer_id=NS10000?beginDate=2016-01-01?endDate=2016-02-26

这可行,但我总是必须输入服务器用户名和密码。有没有一种方法可以绕过身份验证,或者在链接中执行,而不在 URL 中显示用户名和密码?

【问题讨论】:

    标签: rest jasperserver


    【解决方案1】:

    您必须在请求报告之前发送身份验证请求:

    GET http://localhost:8080/jasperserver/rest/login?j_username=user&j_password=p@ssw0rd

    您可以在the official documentation 中找到更多内容

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-06
      • 2021-07-26
      • 2021-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-08
      • 2015-09-23
      相关资源
      最近更新 更多