Class PrincipalInjectionEndpoint

java.lang.Object
org.eclipse.microprofile.jwt.tck.container.jaxrs.PrincipalInjectionEndpoint

@Path("/endp") @RequestScoped @RolesAllowed("Tester") public class PrincipalInjectionEndpoint extends Object
Validate that the injection of a Principal works when using the MP-JWT feature. This validates that the MP-JWT implementation is not interfering with the CDI built in Principal bean. This also validates that the SecurityContext.getUserPrincipal() is also an instance of the JsonWebToken interface.
  • Constructor Details

    • PrincipalInjectionEndpoint

      public PrincipalInjectionEndpoint()
  • Method Details

    • verifyInjectedPrincipal

      @GET @Path("/verifyInjectedPrincipal") @Produces("application/json") public jakarta.json.JsonObject verifyInjectedPrincipal()