This feature enables web applications or microservices to use the Eclipse MicroProfile JSON Web Token 2.1 specification to authenticate users instead of, or in addition to, the configured user registry.
Enabling this feature
To enable the MicroProfile JSON Web Token 2.1 feature, add the following element declaration into your server.xml
file, inside the featureManager
element:
<feature>mpJwt-2.1</feature>
Feature configuration elements
Standard API packages provided by this feature
-
jakarta.annotation
-
jakarta.annotation.security
-
jakarta.annotation.sql
Stable API packages provided by this feature
-
org.eclipse.microprofile.auth
-
org.eclipse.microprofile.jwt
Liberty API packages provided by this feature
-
com.ibm.websphere.endpoint
Features that this feature enables
Supported Java versions
-
JavaSE-11.0
-
JavaSE-17.0
-
JavaSE-21.0
-
JavaSE-22.0
Features that enable this feature
Developing a feature that depends on this feature
If you are developing a feature that depends on this feature, include the following item in the Subsystem-Content
header in your feature manifest file.
io.openliberty.mpJwt-2.1; type="osgi.subsystem.feature"
SPI packages provided by this feature
-
com.ibm.ws.adaptable.module.structure
-
com.ibm.ws.anno.classsource.specification
-
com.ibm.wsspi.adaptable.module
-
com.ibm.wsspi.adaptable.module.adapters
-
com.ibm.wsspi.anno.classsource
-
com.ibm.wsspi.anno.info
-
com.ibm.wsspi.anno.service
-
com.ibm.wsspi.anno.targets
-
com.ibm.wsspi.anno.util
-
com.ibm.wsspi.artifact
-
com.ibm.wsspi.artifact.equinox.module
-
com.ibm.wsspi.artifact.factory
-
com.ibm.wsspi.artifact.factory.contributor
-
com.ibm.wsspi.artifact.overlay
-
com.ibm.wsspi.http
-
com.ibm.wsspi.http.ee8