Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.

Commit f1b6801

Browse files
authored
Spelling tweak, and add example and explanation (#505)
1 parent 17415ee commit f1b6801

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/content/integrate/auth.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ To generate a random secret, you could use the following command:
2020
openssl rand -base64 32
2121
{{< /highlight >}}
2222

23+
To create a claim, follow the JWT standard to create a claim and sign it with your secret.
24+
2325
Example claim:
2426

2527
{{<highlight json>}}
@@ -28,7 +30,7 @@ Example claim:
2830
"aud": "chirpstack-application-server", // audience for which the claim is intended
2931
"nbf": 1489566958, // unix time from which the token is valid
3032
"exp": 1489653358, // unix time when the token expires
31-
"sub": "user", // subject of the claim (an user)
33+
"sub": "user", // subject of the claim (a user)
3234
"username": "admin" // username the client claims to be
3335
}
3436
{{< /highlight >}}
@@ -46,4 +48,4 @@ method.
4648

4749
For requests to the RESTful JSON interface, you need to set the JWT token
4850
using the `Grpc-Metadata-Authorization` header field. The token needs to
49-
be present for each request.
51+
be present for each request. For example as a cURL header `--header "Grpc-Metadata-Authorization: Bearer <jwt token>"`

0 commit comments

Comments
 (0)