mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-29 00:47:17 +02:00
authorize: support X-Pomerium-Authorization in addition to Authorization (#2780)
* authorize: support X-Pomerium-Authorization in addition to Authorization * tangentental correction Co-authored-by: alexfornuto <alex@fornuto.com>
This commit is contained in:
parent
88c5eeba45
commit
a8b76bd623
11 changed files with 101 additions and 42 deletions
|
@ -5,6 +5,7 @@ const AuthorizationTypePomerium = "Pomerium"
|
|||
|
||||
// Standard headers
|
||||
const (
|
||||
HeaderAuthorization = "Authorization"
|
||||
HeaderReferrer = "Referer"
|
||||
HeaderImpersonateGroup = "Impersonate-Group"
|
||||
HeaderUpgrade = "Upgrade"
|
||||
|
@ -12,6 +13,10 @@ const (
|
|||
|
||||
// Pomerium headers contain information added to a request.
|
||||
const (
|
||||
// HeaderPomeriumAuthorization is the header key for a pomerium authorization JWT. It
|
||||
// can be used in place of the standard authorization header if that header is being
|
||||
// used by upstream applications.
|
||||
HeaderPomeriumAuthorization = "x-pomerium-authorization"
|
||||
// HeaderPomeriumResponse is set when pomerium itself creates a response,
|
||||
// as opposed to the upstream application and can be used to distinguish
|
||||
// between an application error, and a pomerium related error when debugging.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue