mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 08:19:23 +02:00
authorize: add support for passing access or id token upstream (#3047)
* authorize: add support for passing access or id token upstream * use an enum
This commit is contained in:
parent
7140562a82
commit
99b9a3ee12
9 changed files with 726 additions and 538 deletions
|
@ -1476,6 +1476,18 @@ explicitly set, then `timeout` would be unlimited (`0s`). You still may specify
|
|||
of the connection using `timeout` value (i.e. to 1 day).
|
||||
|
||||
|
||||
### Set Authorization Header
|
||||
- `yaml`/`json` setting: `set_authorization_header`
|
||||
- Type: `string` (`pass_through`, `access_token` or `id_token`)
|
||||
- Optional
|
||||
- Default: `pass_through`
|
||||
|
||||
Set Authorization Header allows you to send a user's identity token through as a Bearer token in the Authorization header.
|
||||
|
||||
Use `access_token` to send the OAuth access token, `id_token` to send the OIDC id token, or `pass_through` (the default) to leave the Authorization header unchanged
|
||||
when it's not used for Pomerium authentication.
|
||||
|
||||
|
||||
### Set Request Headers
|
||||
- Config File Key: `set_request_headers`
|
||||
- Type: map of `strings` key value pairs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue