我正在使用OIDC和KeyCloak Quarkus扩展。
目前,我访问token信息的方式如下:
@Inject org.eclipse.microprofile.jwt.JsonWebToken tokenMicroProfile;
@Inject SecurityIdentity securityIdentity;我在这些抽象中找不到issuedFor字段。这似乎有我需要的东西。
@Inject org.keycloak.representations.JsonWebToken tokenKeyCloak;但是注入失败了。那么,如何使用quarkus-oidc获取信息呢?
发布于 2021-03-19 18:13:56
您可以使用tokenMicroProfile.getClaim("azp")或tokenMicroProfile.getClaim(Claims.azp)。
https://stackoverflow.com/questions/66583069
复制相似问题