Sandbox
Here is an example of how to generate a JWT and use it.
User Authorization in the Platform
A sandbox repository is available for testing user authorization. You can find setup instructions in the repository's README.md.
Token Generation
- After launching the sandbox, open the "JWT Generation" section. This section helps you generate a JWT token for a user in your organization. You can use this token to authorize the user in the embedded mode of the Latenode platform.
- Paste your private key into the โPrivate Keyโ input field and select the signing algorithm corresponding to your key pair.
- Fill in the Tenant ID, User ID, and Plan ID fields, where:
Tenant ID
โ Required. Your tenant ID in the Latenode platform
User ID
โ Required. A unique string that clearly identifies the user in your organization
Plan ID
โ Optional. The ID of the subscription plan to be assigned to the user during their first login. For future logins, this field is not required. In this example, the created plan ID is โ35โ
- Click the โGenerate Tokenโ button to create a new JWT token, which you can copy using the โCopyโ button.
Token generation is done locally without network requests. This ensures your private key is not sent to the Latenode platform or any third parties.
Below is an interactive video showing token generation
Using token
Once the JWT token is generated, go to the โWhite Labelโ section. Paste the copied value into the โJWT Tokenโ field. In the โUI Config JSONโ field, insert the following:
{
"scenarios": {
"hideEmptyScenariosGreetings": true
},
"main": {
"hideSideMenu": false
}
}
Then click the โInitโ button. After that, an embedded version of the Latenode platform will appear on the right side of the screen, with the new user already authorized, in this case with ID = tu_2
