jiobanma
V2EX  ›  Java

springmvc shrio http https 跳转问题

  •  
  •   jiobanma ·
    banmajio · Oct 11, 2021 · 1486 views
    This topic created in 1675 days ago, the information mentioned may be changed or developed.

    公司老项目登录升级,基于 springmvc 与 shiro 实现的。系统登录要跳到集团的一个登录页,那边的链接是 https 的。controller 中登录方法返回的内容是:return "redirect:"+targetUrl;其中 targetUrl 是登录页链接,https 的。但是项目启动,如果配置 targetUrl 为 HTTPs,会导致 shiro 一致重复调用登录接口,换成 http 就不会了,搞不懂为啥,有大佬能提供点思路嘛?

    jiobanma
        1
    jiobanma  
    OP
       Oct 12, 2021
    滴滴滴滴滴滴滴
    liian2019
        2
    liian2019  
       Oct 18, 2021
    是不是 shiro 没有配置放行 targetUrl,导致访问 targetUrl 的时候被拦截重新进入认证流程
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5822 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:58 · PVG 09:58 · LAX 18:58 · JFK 21:58
    ♥ Do have faith in what you're doing.