【发布时间】:2021-08-30 12:18:40
【问题描述】:
-
open liberty server.xml 的 Mpjwt 配置
<mpJwt id="keycloakJwt" jwksUri="https://auth.ura.go.ug/auth/realms/sso/protocol/openid- connect/certs" issuer="https://auth.ura.go.ug/auth/realms/sso" userNameAttribute="preferred_username" audiences="askura-etax-ws"> </mpJwt> -
未受保护的路由在访问 CWWKS5522E 时返回以下错误:MicroProfile JWT 功能无法执行身份验证,因为在请求中找不到 MicroProfile JWT。
@PermitAll @Path("/test") public class TestResource { @Inject AppProperty appProperty; @GET @Path("/ping") @Produces(MediaType.TEXT_PLAIN) public String test() { return "TEST"; } }
【问题讨论】: