From c756113bfac208860a763b3ceed4840d5e385d54 Mon Sep 17 00:00:00 2001 From: AdamR <31927552+arempter@users.noreply.github.com> Date: Tue, 22 Jun 2021 15:27:47 +0200 Subject: [PATCH] add oauth2 docs options for promtail client (#3829) --- .../sources/clients/promtail/configuration.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/sources/clients/promtail/configuration.md b/docs/sources/clients/promtail/configuration.md index 323f492eda..36cb3cf443 100644 --- a/docs/sources/clients/promtail/configuration.md +++ b/docs/sources/clients/promtail/configuration.md @@ -191,6 +191,28 @@ basic_auth: # The file containing the password for basic auth [password_file: ] +# Optional OAuth 2.0 configuration +# Cannot be used at the same time as basic_auth or authorization +oauth2: + # Client id and secret for oauth2 + [client_id: ] + [client_secret: ] + + # Read the client secret from a file + # It is mutually exclusive with `client_secret` + [client_secret_file: ] + + # Optional scopes for the token request + scopes: + [ - ... ] + + # The URL to fetch the token from + token_url: + + # Optional parameters to append to the token URL + endpoint_params: + [ : ... ] + # Bearer token to send to the server. [bearer_token: ]