oauth2-shiro-redis
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
我按照示例创建了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 没有查出来是什么原因导致的。
你用DEBUG看看, 是不是查询数据库账号没有
redis里边有两条数据
是不是存储了两条? 代码逻辑上有问题
是存储了两条