我正在尝试用okta安装一个测试jhipster的网络应用,如下所示。指南.
我可以用okta登录我的jhipster web应用,而且我应该是ROLE_ADMIN,但在被重定向回webapp菜单后,任何试图导航到实体的尝试都会出现一个未授权访问被拒绝的页面。
IDE是Intellij,构建工具是gradle。我使用的是Java SDK 11。
okta有ROLE_ADMIN和ROLE_USER组。
我已经添加了索赔。
控制台日志
Enter: add() with argument[s] = [AuditEvent [timestamp=2020-04-25T19:50:39.747921400Z, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={details=org.springframework.security.web.authentication.WebAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null, type=org.springframework.security.access.AccessDeniedException, message=Access is denied}]]
Exit: add() with result = null
WARN 16660 --- [ XNIO-1 task-52] o.z.problem.spring.common.AdviceTraits : Unauthorized: Full authentication is required to access this resource
WARN 16660 --- [ XNIO-1 task-52] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource]
为了解决这个错误,我把用户和组都添加到了应用程序下的任务中。
但问题依然存在
有什么办法可以解决这个问题,以ADMIN的身份进行授权?