@@ -339,7 +339,8 @@ The request isn't authorized because the provided credentials are invalid.
339
339
340
340
The `bearer_token` authenticator will forward the request method, path and headers to a session store. If the session store
341
341
returns `200 OK` and body `{ "subject" : " ..." , "extra": {} }` then the authenticator will set the subject appropriately. Please
342
- note that Gzipped responses from `check_session_url` are not supported, and will fail silently.
342
+ note that Gzipped responses from `check_session_url` are not supported, and will fail silently. You can return `HTTP 406`
343
+ to skip to the next authentication method.
343
344
344
345
# ## `bearer_token` Configuration
345
346
@@ -357,6 +358,8 @@ note that Gzipped responses from `check_session_url` are not supported, and will
357
358
pointing to the `sub` field. This defaults to `sub`. Example : ` identity.id` for `{ "identity": { "id": "1234" } }`.
358
359
- ` token_from` (object, optional) - The location of the bearer token. If not configured, the token will be received from a default
359
360
location - 'Authorization' header. One and only one location (header, query, or cookie) must be specified.
361
+ - ` auth_scheme` (string, optional, one of) - The auth scheme (case insensitive) that must prefix the token for request
362
+ authentication when the header is set to `Authorization`. This defaults to `Bearer` for. It can only be set along with `header``.
360
363
- ` header` (string, required, one of) - The header (case insensitive) that must contain a Bearer token for request
361
364
authentication. It can't be set along with `query_parameter` or `cookie`.
362
365
- ` query_parameter` (string, required, one of) - The query parameter (case sensitive) that must contain a Bearer token for
0 commit comments