Test JWT Configuration in AWS S3
This guide explains how to test your JWT (JSON Web Token) configuration within the Privacera Dataserver.
JWT validation is supported only in Self-Managed deployments starting from Privacera release 9.0.3.1.
Testing Procedure¶
To validate your JWT, execute the following curl command:
Bash
curl -v -X POST \
-H 'Content-Type: application/json' \
-d '{"tokenStr": "<JWT_TOKEN>"}' \
https://<DATASERVER_URL>/services/jwt/validate
Replace the placeholders:
The Dataserver will return a JSON object indicating the status of the token validation.
-
Http Status Codes
-
Content type: application/json
JSON Response Formats¶
-
Valid Token
If the provided JWT is valid, the response will be: -
Invalid Token
If the provided JWT is invalid (e.g., malformed or expired), the response will be: -
Empty Payload or Empty JWT Token
If the request payload is empty, or the tokenStr value within the payload is empty, the response will be:
- Prev topic: Connector Guide