Summary
Using MP-JWT in one of multiple WARs disables all other WARs
Details
Multi-War Example Layout
wildfly
L war1
L microprofile-config.properties
L public.pem
L war2
EAR Example Layout
wildfly
L ear
L war1
L microprofile-config.properties
L public.pem
L war2
war1 is configured to use smallrye-jwt via @LoginConfig and it is working by defining the properties mp.jwt.verify.publickey.location and mp.jwt.verify.issuer.
If war2 is accessed an exception is thrown for missing said properties.
ERROR \[io.undertow.request\] (default task-1) UT005023: Exception handling request to /war2/: java.lang.IllegalStateException: JWTAuthContextInfo has not been initialized. Please make sure that either 'mp.jwt.verify.publickey' or 'mp.jwt.verify.publickey.location' properties are set. at io.smallrye.jwt//io.smallrye.jwt.config.JWTAuthContextInfoProvider.lambda$throwException$0(JWTAuthContextInfoProvider.java:430)
Original Issue on Smallrye Github https://github.com/smallrye/smallrye-jwt/issues/360