docs: mention alternative bearer token header format (#2155)

This commit is contained in:
Travis Groth 2021-04-29 15:38:58 -04:00 committed by GitHub
parent 16c106441c
commit d32b8a4d8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,10 @@ The application interacting with Pomerium must manage the following workflow. Co
1. The script or application is responsible for handling that http callback request, and securely handling the callback session (`pomerium_jwt`) queryparam. 1. The script or application is responsible for handling that http callback request, and securely handling the callback session (`pomerium_jwt`) queryparam.
1. The script or application can now make any requests as normal to the upstream application by setting the `Authorization: Pomerium ${pomerium_jwt}` header. 1. The script or application can now make any requests as normal to the upstream application by setting the `Authorization: Pomerium ${pomerium_jwt}` header.
:::tip
Pomerium supports `Authorization: Bearer Pomerium-${pomerium_jwt}` in addition to `Authorization: Pomerium ${pomerium_jwt}` format.
:::
## Example Code ## Example Code
Please consider see the following minimal but complete python example. Please consider see the following minimal but complete python example.