Configuring persistent OAuth 2.0 services
WebSphere Liberty supports persisting OAuth 2.0 local clients and tokens to a database. With persistent OAuth 2.0, an authorized local client can continue to access OAuth 2.0 services after a restart.
Before you begin
- Gain the necessary access to create tables and read/write to these tables in a database and
configure it in the Liberty
server.xml
. - Grant access to the SAF EJBROLE
BBGZDFLT.com.ibm.ws.security.oauth20.clientManager
to an administrator user to control OAuth 2.0 local clients. - Create an OAuth 2.0 provider in the Liberty
server.xml
. For more information, see Authorization using OAuth 2.0.
About this task
The following steps create a persistent OAuth 2.0 local client. This local client is used to grant OAuth 2.0 tokens.
Restriction: Db2®
JDBC type 2 connectivity is not supported for persistent OAuth 2.0 services.