Skip to content

Commit

Permalink
add oauth2 docs options for promtail client (#3829)
Browse files Browse the repository at this point in the history
  • Loading branch information
arempter authored Jun 22, 2021
1 parent 23c15bd commit c756113
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/sources/clients/promtail/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,28 @@ basic_auth:
# The file containing the password for basic auth
[password_file: <filename>]
# 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: <string>]
[client_secret: <secret>]
# Read the client secret from a file
# It is mutually exclusive with `client_secret`
[client_secret_file: <filename>]

# Optional scopes for the token request
scopes:
[ - <string> ... ]

# The URL to fetch the token from
token_url: <string>

# Optional parameters to append to the token URL
endpoint_params:
[ <string>: <string> ... ]

# Bearer token to send to the server.
[bearer_token: <secret>]

Expand Down

0 comments on commit c756113

Please sign in to comment.