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

spring security plugin #278

Merged
merged 1 commit into from Oct 24, 2022
Merged

spring security plugin #278

merged 1 commit into from Oct 24, 2022

Conversation

njzfit
Copy link
Contributor

@njzfit njzfit commented Sep 14, 2022

Describe what this PR does / why we need it

一个 SpringSecurity 的故障注入插件

如果使用 SpringSecurity 框架,可以对用户登录流程进行故障注入

Does this pull request fix one issue?

NONE

Describe how you did it

内部对 UserDetailsService$loadUserByUsername(String username) 方法做切面,可对指定用户进行延迟登录或抛异常等操作

如果对 AuthenticationManager$authenticate(Authentication authentication) 做切面会多次触发

Describe how to verify it

创建 SpringBoot 项目,使用 SpringSecurity 框架,进行认证流程配置(按框架默认配置或自定义配置)

注入后用指定用户登录,可看到延迟或异常

Special notes for reviews

NONE

Signed-off-by: liubin <liubin@njzfit.cn>
@xcaspar xcaspar self-requested a review October 24, 2022 01:49
@xcaspar xcaspar added the type/feature Category issues or prs related to feature request. label Oct 24, 2022
@xcaspar xcaspar merged commit 51cfd2f into chaosblade-io:master Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Category issues or prs related to feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants