O'Reilly logo

Hands-On Enterprise Java Microservices with Eclipse MicroProfile by Scott Stark, Antoine Sabot-Durand, Pavol Loffay, Jeff Mesnil, Heiko W. Rupp, Cesar Saavedra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The JWT tab

After clicking on the JWT tab, you should see a view similar to the following with two endpoint links:

The first link makes a request to an unsecured endpoint that will print the name from the JWT along with the upn claim if it exists.

However, since the web frontend is not providing a JWT for this request, the following will be displayed in the output section:

Hello[open] user=anonymous, upn=no-upn

Clicking on the second link accesses a secured version of the endpoint that has this code fragment:

public class JwtEndpoint {    @Inject    private JsonWebToken jwt;    @Inject    @Claim(standard = Claims.raw_token)    private ClaimValue<String> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required