mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Created Filer JWT Use (markdown)
parent
74d4f422f4
commit
e7e2e6069b
11
Filer-JWT-Use.md
Normal file
11
Filer-JWT-Use.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
## How to get a valid JWT
|
||||||
|
|
||||||
|
The Filer won't generate JWTs, you will have to configure another service to create a JWT with the same signing key set in the `security.toml` file described on the Security Configuration wiki page. When generating the JWT, ensure that the timeout in seconds matches the timeout set in the `security.toml` file.
|
||||||
|
|
||||||
|
## How to send a JWT to the Filer
|
||||||
|
|
||||||
|
The Filer supports receiving a JWT in three different forms:
|
||||||
|
|
||||||
|
1. Through the `Authorization: Bearer <token>` header
|
||||||
|
2. Via the request's query parameters: http://localhost:8888/buckets/all?jwt=token
|
||||||
|
3. In an HTTP-only cookie named AT(Access Token)
|
Loading…
Reference in a new issue