oauth2-shiro-redis icon indicating copy to clipboard operation
oauth2-shiro-redis copied to clipboard

Realm [com.monkeyk.os.infrastructure.shiro.AuthzRedisRealm@2ac8c111] was unable to find account data for the submitted AuthenticationToken [org.apache.shiro.authc.UsernamePasswordToken

Open zhangwonderful opened this issue 7 years ago • 4 comments

我按照示例创建了clientdetail,系统返回提示:username为test,password也为test,可是用这个用户名和密码登录报以下错误: Realm [com.monkeyk.os.infrastructure.shiro.AuthzRedisRealm@2ac8c111] was unable to find account data for the submitted AuthenticationToken [org.apache.shiro.authc.UsernamePasswordToken - test, rememberMe=false]. 传入参数为: client_id:ng2-admin scope:read response_type:code redirect_uri:http://localhost:7777/spring-oauth-client/authorization_code_callback state:7a7e3e00-040d-4425-8894-e6dba766d217 client_secret: username:test password:test 没有查出来是什么原因导致的。

zhangwonderful avatar Apr 07 '17 08:04 zhangwonderful

你用DEBUG看看, 是不是查询数据库账号没有

monkeyk avatar Apr 10 '17 10:04 monkeyk

redis里边有两条数据

zhangwonderful avatar Apr 11 '17 05:04 zhangwonderful

是不是存储了两条? 代码逻辑上有问题

monkeyk avatar Apr 11 '17 11:04 monkeyk

是存储了两条

zhangwonderful avatar Apr 12 '17 00:04 zhangwonderful