Skip to content

Commit eda74ad

Browse files
authored
Update generate_tenant_token_scratch.mdx
Moved JWT link to the top section of the page
1 parent fecf30e commit eda74ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

learn/security/generate_tenant_token_scratch.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ description: This guide shows you the main steps when creating tenant tokens wit
55

66
# Generate a tenant token without a library
77

8-
Generating tenant tokens without a library is possible, but not recommended. This guide summarizes the necessary steps.
8+
Generating tenant tokens without a library is possible, but not recommended. This guide summarizes the necessary steps.
99

1010
The full process requires you to create a token header, prepare the data payload with at least one set of search rules, and then sign the token with an API key.
1111

1212
## Prepare token header
1313

14-
The token header must specify a `JWT` type and an encryption algorithm. Supported tenant token encryption algorithms are `HS256`, `HS384`, and `HS512`.
14+
The token header must specify a `JWT` type and an encryption algorithm. Supported tenant token encryption algorithms are `HS256`, `HS384`, and `HS512`. For more details about JWT [click here](https://jwt.io/).
15+
1516

1617
```json
1718
{
@@ -64,7 +65,7 @@ Consult the [token payload reference](/learn/security/tenant_token_reference) fo
6465

6566
## Encode header and payload
6667

67-
You must then encode both the header and the payload into `base64`, concatenate them, and generate the token by signing it using your chosen encryption algorithm. For more details [click here](https://jwt.io/).
68+
You must then encode both the header and the payload into `base64`, concatenate them, and generate the token by signing it using your chosen encryption algorithm.
6869

6970
## Make a search request using a tenant token
7071

0 commit comments

Comments
 (0)