I'm trying out the Quarkus JWT quickstart. But when I use the token that I normally use in my Spring application. I get the following error.
rejected due to invalid claims. Additional details: [[17] Unexpected exception thrown from validator org.jose4j.jwt.consumer.IssValidator: java.lang.NullPointerException at org.jose4j.jwt.consumer.IssValidator.expectedValue(IssValidator.java:72); org.jose4j.jwt.consumer.IssValidator.validate(IssValidator.java:59); ...omitted..., [14] No Subject (sub) claim is present
Looks like the Microprofile JWT auth spec, specifies the Subject (sub) as one of the minimum claims required in a JWT. So, is there an alternate JWT auth mechanism that can be used, that doesn't require the Subject claim? i.e any other parameter that can be passed to the quarkus.smallrye-jwt.auth-mechanism
property, other than MP_JWT
?