Issuing JWT Access Tokens
Liferay DXP 7.4 U45+/GA45+
You can configure Liferay to issue access tokens in the JWT format from System Settings.
Enabling JWT Tokens
-
Open the Global Menu (
) and navigate to Control Panel → System Settings.
-
Select OAuth2 and go to Authorization Server Configuration.
-
Check the box to Issue JWT Access Token.
-
Paste a JSON Web Key for signing the JWT access tokens. This is mandatory if you check the above checkbox.
-
Click Update.
Starting with Liferay DXP 7.4 U55+/GA55+, access tokens are issued using the JWT format by default. A JSON Web Key is auto-generated on Liferay startup.
Verifying JWT Access Tokens
Liferay DXP 7.4 U49+/GA49+
After enabling the above setting, Liferay issues JWT access tokens. Clients can verify these tokens by using Liferay’s JWKS URI.
You can retrieve the JSON Web Key Set by executing the following cURL command:
Given below is a sample JWKS from Liferay: