JWT Authentication
GridGain 9 supports JWT authentication for REST users, letting them obtain, use, and revoke JSON Web Tokens to authenticate to the cluster.
In addition to other ways of authentication, GridGain 9 provides JWT authentication for users who use REST to work with the cluster. JWT allows users to safely, securely and quickly authenticate to the cluster without requiring the overhead of verifying every request separately.
GridGain regularly updates the private keys used to create JWT tokens. The frequency can be changed by using the ignite.security.jwt.keyTtl property. By default, the keys are updated every 14 days.
Getting JWT Token
To get the JWT token, send a request to /management/v1/authentication/login endpoint. The request body should contain the GridGain credentials for the user the token is provided for. For more information on how to create a user, see Basic authentication
curl -X 'POST' \
'http://cluster_url:10300/management/v1/authentication/login' \
-H 'accept: application/jwt' \
-H 'Content-Type: application/json' \
-d '{
"username": "User",
"password": "MyPass"
}'All JWT tokens have a limited TTL. You can configure the TTL by using the ignite.security.jwt.ttl configuration parameter. By default, all tokens are valid for 3600000ms (8 hours).
Using JWT in Requests
After you get JWT token as described above, you can send it in the message header instead of using basic authentication:
curl -X 'GET' \
'http://cluster_url:10300/management/v1/cluster/state' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>'Revoking JWT Tokens
GridGain supports two ways to revoke tokens:
Use the
/management/v1/authentication/jwtendpoint to revoke all tokens issued to a specific userUse the
/management/v1/authentication/jwt/{token}endpoint to revoke a specific JWT token
Here is how you can revoke all tokens from a specific user:
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

