mirror of
https://github.com/fosrl/docs.git
synced 2025-05-12 13:20:43 +01:00
add headers
This commit is contained in:
parent
3f2477998e
commit
2b8662fea4
1 changed files with 12 additions and 1 deletions
|
@ -38,7 +38,15 @@ Pangolin is configured using a `config.yml` file. The file is expected to be mou
|
||||||
- The name of the session cookie. This is used to store the session token for the main application.
|
- The name of the session cookie. This is used to store the session token for the main application.
|
||||||
- `resource_access_token_param`: string
|
- `resource_access_token_param`: string
|
||||||
- Example: `p_token`
|
- Example: `p_token`
|
||||||
- The query parameter used to pass the access token to the resource. Badger extracts this token and sends it to Pangolin to authenticate. This is used in direct share links that do not require a browser redirect.
|
- Pass access token in this query parameter in each request for authentication.
|
||||||
|
- `resource_access_token_headers`: object
|
||||||
|
- Pass access token in these headers in each request for authentication.
|
||||||
|
- `id`: string
|
||||||
|
- Example: `P-Access-Token-Id`
|
||||||
|
- The name of the header used to pass the access token ID.
|
||||||
|
- `token`: string
|
||||||
|
- Example: `P-Access-Token`
|
||||||
|
- The name of the header used to pass the access token.
|
||||||
- `resource_session_request_param`: string
|
- `resource_session_request_param`: string
|
||||||
- Example: `p_session_request`
|
- Example: `p_session_request`
|
||||||
- The query parameter used to pass the session request token to be exchanged for a real session token in Badger.
|
- The query parameter used to pass the session request token to be exchanged for a real session token in Badger.
|
||||||
|
@ -198,6 +206,9 @@ server:
|
||||||
internal_hostname: "pangolin"
|
internal_hostname: "pangolin"
|
||||||
session_cookie_name: "p_session_token"
|
session_cookie_name: "p_session_token"
|
||||||
resource_access_token_param: "p_token"
|
resource_access_token_param: "p_token"
|
||||||
|
resource_access_token_headers:
|
||||||
|
id: "P-Access-Token-Id"
|
||||||
|
token: "P-Access-Token"
|
||||||
resource_session_request_param: "p_session_request"
|
resource_session_request_param: "p_session_request"
|
||||||
|
|
||||||
traefik:
|
traefik:
|
||||||
|
|
Loading…
Reference in a new issue