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

SAS授权码模式login page无法正确显示 #318

Closed
evil0th opened this issue Sep 29, 2024 · 2 comments
Closed

SAS授权码模式login page无法正确显示 #318

evil0th opened this issue Sep 29, 2024 · 2 comments
Labels
question Further information is requested

Comments

@evil0th
Copy link
Contributor

evil0th commented Sep 29, 2024

form-login:login-page 返回404

@evil0th evil0th changed the title SAS授权码模式可能被验证码Filter拦截 SAS授权码模式可能被自定义Filter拦截 Sep 29, 2024
@Hccake Hccake added the question Further information is requested label Sep 30, 2024
@evil0th evil0th changed the title SAS授权码模式可能被自定义Filter拦截 SAS授权码模式login page无法正确显示 Sep 30, 2024
@Hccake
Copy link
Member

Hccake commented Oct 1, 2024

spring 默认的 formlogin 在使用了自定义的 AuthenticationEntryPoint 后,将不会进行对应拦截器的注册,暂时取消了组件内部默认注册 AuthenticationEntryPoint 的操作,决定权交由业务自由控制。

image

@Hccake
Copy link
Member

Hccake commented Oct 1, 2024

如果需要同时控制 AuthenticationEntryPoint ,可以复制 DefaultLoginPageConfigurer 并调整判断逻辑,然后自定义一个 SpringSecurityConfigurerCustomizer 注册该 Configurer

@Hccake Hccake closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants