Skip to main content

Set Authorization Header

Summary

caution

As of v0.23.0, set_authorization_header has been deprecated in favor of set_request_headers and will be removed in v0.24.0.

Now, set_request_headers allows you to include ID and Access tokens in requests so you don't have to designate the Authorization header to send these values.

Set Authorization Header allows you to send a user's identity token through as a bearer token in the Authorization header.

How to configure

YAML/JSON settingTypeDefaultUsage
set_authorization_headerstringpass_throughoptional

Options

OptionDefinition
access_tokenSend the OAuth access token
id_tokenSend the OIDC ID token
pass_throughLeave the Authorization header unchanged from the client when it's not used for Pomerium authentication

Examples

set_authorization_header: pass_through