bladex 部署完成后登陆提示“未获得用户角色信息”

Blade 未结 2 2579
peijunlin
peijunlin 2019-10-24 13:52

一、该问题的重现步骤是什么?

 

image.png


.

二、你期待的结果是什么?实际看到的又是什么?


无法登陆


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

win10 系统


四、请提供详细的错误堆栈信息,这很重要。

569  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : --> GET http://192.168.56.1:8102/client/user-info?tenantId=000000&account=admin

2019-10-24 13:47:09.569  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0

2019-10-24 13:47:09.569  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : x-forwarded-for: 127.0.0.1

2019-10-24 13:47:09.569  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : Accept: */*

2019-10-24 13:47:09.569  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : --> END GET

2019-10-24 13:47:09.583  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : <-- 200 OK http://192.168.56.1:8102/client/user-info?tenantId=000000&account=admin (14ms)

2019-10-24 13:47:09.584  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : Connection: keep-alive

2019-10-24 13:47:09.584  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : Transfer-Encoding: chunked

2019-10-24 13:47:09.584  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : Content-Type: application/json;charset=UTF-8

2019-10-24 13:47:09.584  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : Date: Thu, 24 Oct 2019 05:47:09 GMT

2019-10-24 13:47:09.584  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : 

2019-10-24 13:47:09.584  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : {"code":200,"success":true,"data":{"user":{"id":"1123598821738675201","createUser":"1123598821738675201","createDept":"1123598813738675201","createTime":"2018-08-08 00:00:00","updateUser":"1123598821738675201","updateTime":"2018-08-08 00:00:00","status":1,"isDeleted":0,"tenantId":"000000","account":"admin","password":"90b9aa7e25f80cf4f64e990b78a9fc5ebd6cecad","name":"管理员","realName":"管理员","avatar":"","email":"admin@bladex.cn","phone":"123333333333","birthday":"2018-08-08 00:00:00","sex":1,"roleId":"1123598816738675201","deptId":"1123598813738675201"},"permissions":[],"roles":[]},"msg":"操作成功"}

2019-10-24 13:47:09.584  INFO 40216 --- [x-blade-user-14] o.s.core.cloud.http.OkHttpSlf4jLogger    : <-- END HTTP (620-byte body)

2019-10-24 13:47:09.591 ERROR 40216 --- [XNIO-1 task-377] o.s.s.o.provider.endpoint.TokenEndpoint  : Handling error: InternalAuthenticationServiceException, 未获得用户的角色信息


org.springframework.security.authentication.InternalAuthenticationServiceException: 未获得用户的角色信息

at org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:123) ~[spring-security-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]

at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:144) ~[spring-security-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]

at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:175) ~[spring-security-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]

at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:200) ~[spring-security-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]


五、若有更多详细信息,请在下面提供。



2条回答
提交回复