Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持Cas协议的gateway属性 #9

Closed
duantihua opened this issue Dec 12, 2019 · 0 comments
Closed

支持Cas协议的gateway属性 #9

duantihua opened this issue Dec 12, 2019 · 0 comments
Milestone

Comments

@duantihua
Copy link
Member

当CasEntryPoint跳转到CAS Server时,有一种网关模式在本地存在认证的情况下非常有用。如果没有网关模式时,在以下场景中,会使得本地登录无法显示:

  1. 用户初次访问App内的私有功能
  2. App拦截,发现没有登录,即将转向到登录逻辑
  3. 由于无法确定用户是否已经在CAS上登录了,要么显示本地登录,要么将访问资源以service参数的形式,转发到CAS。
  • 如果转发到CAS(有无gateway参数,此时很重要),cas登录界面会锁定用户,直到密码输入正确,才能跳转回来。
  • 如果转到本地登录,则和CAS没有任何关系,这就失去了单点登录的意义了

如果支持gateway属性,则可以第三步在转发时增加这一属性,这样,不管用户是否已经登录CAS,都将转发回来(如果已经登录,则会携带Ticket)。这样就可以到本地登录地址。该地址可以根据是否携带Ticket,进行处理,以决定是否呈现本地登录界面。

duantihua added a commit that referenced this issue Dec 12, 2019
@duantihua duantihua added this to the 4.2.12 milestone Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant