mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-26 10:08:22 +03:00
tweak headings
This commit is contained in:
parent
743acd87fd
commit
86f551d6fd
@ -273,11 +273,11 @@ To use role-based access control, you must connect to Frigate via the **authenti
|
|||||||
|
|
||||||
## API Authentication Guide
|
## API Authentication Guide
|
||||||
|
|
||||||
## Getting a Bearer Token
|
### Getting a Bearer Token
|
||||||
|
|
||||||
To use the Frigate API, you need to authenticate first. Follow these steps to obtain a Bearer token:
|
To use the Frigate API, you need to authenticate first. Follow these steps to obtain a Bearer token:
|
||||||
|
|
||||||
### 1. Login
|
#### 1. Login
|
||||||
|
|
||||||
Make a POST request to `/login` with your credentials:
|
Make a POST request to `/login` with your credentials:
|
||||||
|
|
||||||
@ -295,7 +295,7 @@ You may need to include `-k` in the argument list in these steps (eg: `curl -k -
|
|||||||
|
|
||||||
The response will contain a cookie with the JWT token.
|
The response will contain a cookie with the JWT token.
|
||||||
|
|
||||||
### 2. Using the Bearer Token
|
#### 2. Using the Bearer Token
|
||||||
|
|
||||||
Once you have the token, include it in the Authorization header for subsequent requests:
|
Once you have the token, include it in the Authorization header for subsequent requests:
|
||||||
|
|
||||||
@ -303,7 +303,7 @@ Once you have the token, include it in the Authorization header for subsequent r
|
|||||||
curl -H "Authorization: Bearer <your_token>" https://frigate_ip:8971/api/profile
|
curl -H "Authorization: Bearer <your_token>" https://frigate_ip:8971/api/profile
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Token Lifecycle
|
#### 3. Token Lifecycle
|
||||||
|
|
||||||
- Tokens are valid for the configured session length
|
- Tokens are valid for the configured session length
|
||||||
- Tokens are automatically refreshed when you visit the `/auth` endpoint
|
- Tokens are automatically refreshed when you visit the `/auth` endpoint
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user