HTTP Transport Options
These settings control how HTTP requests carry tokens.
authpaseto_token_location-
Token sources checked for HTTP requests. Valid values are
headersandjson. Defaults to("headers",).If both sources are enabled, header lookup runs first and JSON lookup runs second.
authpaseto_header_name- Header name used when
headerstransport is enabled. Defaults toAuthorization. authpaseto_header_type- Optional prefix required in the header value, such as
Bearer. Set this toNoneto accept a bare token value likeAuthorization: <PASETO>. Defaults toBearer. authpaseto_json_key- JSON field name used when
jsontransport is enabled. Defaults toaccess_token. authpaseto_json_type- Optional prefix required in the JSON field value. Set this to
Noneto accept a bare token value like{"access_token": "<PASETO>"}. Defaults toNone.
Per-route overrides on paseto_required() can temporarily replace the active
location, key, and prefix for a single endpoint.