OAuth 2.0

This feature enables web applications to integrate OAuth 2.0 for authenticating and authorizing users.

Enabling this feature

To enable the OAuth 2.0 feature, add the following element declaration into your server.xml file, inside the featureManager element:

<feature>oauth-2.0</feature>

Liberty API packages provided by this feature

  • com.ibm.oauth.core.api.attributes

  • com.ibm.oauth.core.api.config

  • com.ibm.oauth.core.api.error

  • com.ibm.oauth.core.api.error.oauth20

  • com.ibm.oauth.core.api.oauth20.mediator

  • com.ibm.websphere.security.oauth20

  • com.ibm.websphere.security.oauth20.store

  • com.ibm.websphere.security.openidconnect.token

  • com.ibm.wsspi.security.oauth20.token

Supported Java versions

  • JavaSE-1.7

  • JavaSE-1.8

  • JavaSE-11.0

  • JavaSE-14.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.

com.ibm.websphere.appserver.oauth-2.0; type="osgi.subsystem.feature"

SPI packages provided by this feature

  • com.ibm.wsspi.security.oauth20

  • com.ibm.wsspi.security.openidconnect