【问题标题】:authentication check with authentication check.gif使用身份验证 check.gif 进行身份验证检查
【发布时间】:2015-12-17 07:55:35
【问题描述】:

JHipster 项目使用带有 authentication_check.gif?timestamp 的身份验证检查。 .gif 文件如何对登录用户进行身份验证?

$http.GET("protected/authentication_check.gif?time="+timestamp+").then(/处理程序/)

如果失败,它会给出 401 未经授权的错误。

更多参考: https://github.com/jhipster/generator-jhipster/issues/599

【问题讨论】:

    标签: angularjs spring-boot jhipster


    【解决方案1】:

    您必须使用旧版本的 JHipster,因为它已不再使用。

    无论如何,这取决于您选择的身份验证方案,如果您的应用程序使用 HTTP 会话身份验证,那么当它请求图像时,它包括会话 cookie 和 spring 安全性检查您的会话是否仍然有效以及是否针对经过身份验证的用户。这是一张图片这一事实并不重要。

    【讨论】:

      猜你喜欢
      • 2015-09-23
      • 1970-01-01
      • 2017-04-17
      • 2017-06-13
      • 2017-03-11
      • 2013-05-30
      • 1970-01-01
      • 2021-02-08
      • 2011-10-17
      相关资源
      最近更新 更多