shiro框架集成验证码验证配置流程

shiro权限框架课程目标精讲篇(1)
shiro初识,全面介绍架构精讲篇
shiro三大核心组件介绍精讲篇
shiro配置jar包导入依赖精讲篇
shiro认证权限流程测试精讲篇
shiro权限授权测试精讲篇
shiro权限模型构建数据库表精讲篇
shiro权限框架自定义realm认证测试精讲篇
shiro散列算法密码加盐测试精讲篇
shiro权限管理自定义realm授权测试精讲篇
spring集成shiro不进入自定义realm是为什么?
shiro认证:连接数据库操作doGetAuthenticationInfo
shiro授权:链接数据库doGetAuthorizationInfo
shiro框架:缓存器
Ehcache配置时出错- Another unnamed CacheManager already exists in the same VM. Please provide unique name
shiro框架:缓存器Ehcache的详细配置流程
shiro框架:sessionManager设置数据会话的存储时间,账号密码到时间清空
shiro框架集成验证码验证配置流程
shiro框架:记住我remberMe自动登入

1.1 验证码

1.1.1 思路

shiro使用FormAuthenticationFilter进行表单认证,验证校验的功能应该加在FormAuthenticationFilter中,在认证之前进行验证码校验。

需要写FormAuthenticationFilter的子类,继承FormAuthenticationFilter,改写它的认证方法,在认证之前进行验证码校验。

1.1.2 自定义FormAuthenticationFilter

shiro框架集成验证码验证配置流程_第1张图片
image.png

1.1.3 配置自定义FormAuthenticationFilter

shiro框架集成验证码验证配置流程_第2张图片
image.png

1.1.4 在login.action对验证错误 进行解析

shiro框架集成验证码验证配置流程_第3张图片
image.png

1.1.5 在登陆页面添加验证码

shiro框架集成验证码验证配置流程_第4张图片
image.png

1.1.6 在filter配置匿名访问验证码jsp

shiro框架集成验证码验证配置流程_第5张图片
image.png

你可能感兴趣的:(shiro框架集成验证码验证配置流程)