随笔分类 -  Spring Security

摘要://@EnableWebSecurity @Component public class SecurityConfig extends AbstractChannelSecurityConfig { @Autowired private SecurityProperties securityProp 阅读全文
posted @ 2020-07-07 10:01 fly_bk 阅读(173) 评论(0) 推荐(0) 编辑
摘要:configure中配置 .headers().frameOptions().disable() 阅读全文
posted @ 2020-07-03 11:01 fly_bk 阅读(321) 评论(0) 推荐(0) 编辑
摘要:ValidateCodeProcessor | AbstractValidateCodeProcessor ValidateCodeGenerator生成ValidateCode并发送 ValidateCodeFilter ValidateCodeProcessorHolder验证返回Validat 阅读全文
posted @ 2020-01-30 10:34 fly_bk 阅读(198) 评论(0) 推荐(0) 编辑
摘要:短信验证码登录 public class ValidateCode { private String code; //有效期 private LocalDateTime expireTime; public ValidateCode(String code, int expireTime) { th 阅读全文
posted @ 2020-01-29 17:01 fly_bk 阅读(1051) 评论(0) 推荐(0) 编辑
摘要:记住我 token保存到数据库 这里使用jpa+mysql 设置配置rememberme 阅读全文
posted @ 2020-01-29 12:10 fly_bk 阅读(2048) 评论(0) 推荐(0) 编辑
摘要:图形验证码 定义验证码 请求的验证码会保存到session中 验证过滤器 将验证码过滤加到UsernamePasswordAuthenticationFilter前面,将图片验证码请求允许访问 开始login吧 图形验证码重构 只需创建继承ValidateCodeGenerator的imageVal 阅读全文
posted @ 2020-01-29 12:01 fly_bk 阅读(265) 评论(0) 推荐(0) 编辑
摘要:个性化用户认证流程 自定义登录页面 将登录改为可配置 如果用户访问的是html就会重定向到登录页面 其他模块使用只需配置 fly.properties.browser.loginPage 就可使用自己的登录页 自定义成功与错误处理 也分为json与重定向到页面两种 获取登录信息 方式一: 方式二: 阅读全文
posted @ 2020-01-28 13:44 fly_bk 阅读(143) 评论(0) 推荐(0) 编辑
摘要:##初识spring security <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depende 阅读全文
posted @ 2020-01-27 16:28 fly_bk 阅读(149) 评论(0) 推荐(0) 编辑
摘要:实现图形验证码 使用过滤器实现图形验证码 使用kaptcha验证码 测试 使用自定义认证实现图形验证码 阅读全文
posted @ 2020-01-23 16:04 fly_bk 阅读(269) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示