Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14288

Smallrye-JWT MP-Config-Property Resolution within EARs or Multideployments

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 19.1.0.Final, 22.0.0.Beta1
    • MP Config, MP JWT
    • None
    • Undefined
    • ---
    • ---

      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

              Unassigned Unassigned
              minh.do@paluno.uni-due.de Tran Minh Do (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: