Skip to main content
Announcements
Qlik Cloud maintenance is scheduled for this weekend May 11-12. View maintenance windows per region here.

Qlik Cloud: Example of JWT token format

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Damien_Villaret
Support
Support

Qlik Cloud: Example of JWT token format

Last Update:

Apr 2, 2024 3:59:18 AM

Updated By:

Sonja_Bauernfeind

Created date:

Apr 2, 2024 3:59:18 AM

In order to be able to authenticate through JWT authentication in Qlik Cloud, the JWT must be formatted appropriately.

This knowledge article exposes an example of JWT token format.

For instructions on how to set JWT authentication in Qlik Cloud, please see Implement JWT Authorization (Qlik.dev).

Resolution

JWT token format to be followed:

Header:
{
  "typ": "JWT",
  "alg": "RS256",
  "kid": "2xxxxxxxxb"
}

Payload:
{
  "jti": 17111234567, 
  "iss": "xxxx.eu.qlikcloud.com",
  "aud": "qlik.api/login/jwt-session",
  "sub": "user1",
  "subType": "user",
  "iat": 1711610797,
  "nbf": 1711610797,
  "exp": 1711614397,
  "name": "John Doe",
  "email": "xxxxxxxx@xxxxxxxx.com",
  "email_verified": true
}

If you are unsure of the format, paste your JWT token in the debugger tool on https://jwt.io to see the content.

 

Environments:

Qlik Cloud 

Labels (1)
Comments
Metin-dev
Partner - Contributor
Partner - Contributor

How can i fix this

{
"errors": [
{
"title": "Invalid token request",
"detail": "JWT_LOGIN_VALIDATIONS Missing required claim: nbf",
"code": "INTERNAL-TOKEN-1",
"status": "400"
}
],
"traceId": "d4f3256ebd3ca1e7c7d71eadd70c4386"
}

Damien_Villaret
Support
Support

@Metin-dev You're missing the nbf (not before) claim which indicates the time from when the JWT token can be used.

Version history
Last update:
‎2024-04-02 03:59 AM
Updated by: