1

I am using OIDC and KeyCloak Quarkus extensions.

Currently, I access the token information like this:

@Inject org.eclipse.microprofile.jwt.JsonWebToken tokenMicroProfile;
@Inject SecurityIdentity securityIdentity;

I could not find the issuedFor field in these abstractions. This seems to have what I need.

@Inject org.keycloak.representations.JsonWebToken tokenKeyCloak;

But injection fails. So, how can I get the information using quarkus-oidc?

AmsterdamLuis
  • 341
  • 3
  • 21

1 Answers1

1

You can do tokenMicroProfile.getClaim("azp") or tokenMicroProfile.getClaim(Claims.azp).

Sergey Beryozkin
  • 688
  • 1
  • 4
  • 9