From da32517e41e4afb606a424184e9a882e9235fc24 Mon Sep 17 00:00:00 2001 From: Helen Kosova Date: Mon, 26 Aug 2019 14:53:51 +0300 Subject: [PATCH] docs: clarify that preauthorizeApiKey works for OAS3 Bearer auth too --- docs/usage/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage/configuration.md b/docs/usage/configuration.md index 50fc0e8564d..b118bef4701 100644 --- a/docs/usage/configuration.md +++ b/docs/usage/configuration.md @@ -88,7 +88,7 @@ Method name | Docker variable | Description --- | --- | ----- `initOAuth` | [_See `oauth2.md`_](./oauth2.md) | `(configObj) => void`. Provide Swagger UI with information about your OAuth server - see the [OAuth 2.0 documentation](./oauth2.md) for more information. `preauthorizeBasic` | _Unavailable_ | `(authDefinitionKey, username, password) => action`. Programmatically set values for a Basic authorization scheme. -`preauthorizeApiKey` | _Unavailable_ | `(authDefinitionKey, apiKeyValue) => action`. Programmatically set values for an API key authorization scheme. +`preauthorizeApiKey` | _Unavailable_ | `(authDefinitionKey, apiKeyValue) => action`. Programmatically set values for an API key or Bearer authorization scheme. In case of OpenAPI 3.0 Bearer scheme, `apiKeyValue` must contain just the token itself without the `Bearer` prefix. ### Docker