forked from jojozhai/security
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
13 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
向spring容器注册以下接口的实现,可以替换默认的处理逻辑 | ||
|
||
密码加密解密策略 | ||
1.密码加密解密策略 | ||
org.springframework.security.crypto.password.PasswordEncoder | ||
|
||
表单登录用户信息读取逻辑 | ||
2.表单登录用户信息读取逻辑 | ||
org.springframework.security.core.userdetails.UserDetailsService | ||
|
||
社交登录用户信息读取逻辑 | ||
3.社交登录用户信息读取逻辑 | ||
org.springframework.social.security.SocialUserDetailsService | ||
|
||
Session失效时的处理策略 | ||
4.Session失效时的处理策略 | ||
org.springframework.security.web.session.InvalidSessionStrategy | ||
|
||
并发登录导致前一个session失效时的处理策略配置 | ||
5.并发登录导致前一个session失效时的处理策略配置 | ||
org.springframework.security.web.session.SessionInformationExpiredStrategy | ||
|
||
退出时的处理逻辑 | ||
6.退出时的处理逻辑 | ||
org.springframework.security.web.authentication.logout.LogoutSuccessHandler | ||
|
||
短信发送的处理逻辑 | ||
7.短信发送的处理逻辑 | ||
com.imooc.security.core.validate.code.sms.SmsCodeSender | ||
|
||
向spring容器注册名为imageValidateCodeGenerator的bean,可以替换默认的图片验证码生成逻辑,bean必须实现以下接口 | ||
8.向spring容器注册名为imageValidateCodeGenerator的bean,可以替换默认的图片验证码生成逻辑,bean必须实现以下接口 | ||
com.imooc.security.core.validate.code.ValidateCodeGenerator | ||
|
||
如果spring容器中有下面这个接口的实现,则在社交登录无法确认用户时,用此接口的实现自动注册用户,不会跳到注册页面 | ||
9.如果spring容器中有下面这个接口的实现,则在社交登录无法确认用户时,用此接口的实现自动注册用户,不会跳到注册页面 | ||
org.springframework.social.connect.ConnectionSignUp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters