Tran Minh Do created WFLY-14288:
-----------------------------------
Summary: Smallrye-JWT MP-Config-Property Resolution within EARs or
Multideployments
Key: WFLY-14288
URL:
https://issues.redhat.com/browse/WFLY-14288
Project: WildFly
Issue Type: Feature Request
Affects Versions: 22.0.0.Beta1, 19.1.0.Final
Reporter: Tran Minh Do
Assignee: Brian Stansberry
h1. Summary
Using MP-JWT in one of multiple WARs disables all other WARs
h2. Details
Multi-War Example Layout
{code:java}
wildfly
L war1
L microprofile-config.properties
L public.pem
L war2
{code}
EAR Example Layout
{code:java}
wildfly
L ear
L war1
L microprofile-config.properties
L public.pem
L war2{code}
*{{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.
{code:java}
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)
{code}
Original Issue on Smallrye
Github https://github.com/smallrye/smallrye-jwt/issues/360
--
This message was sent by Atlassian Jira
(v8.13.1#813001)