Skip to content

Commit

Permalink
Add oauth2 client-credentials example (#1044)
Browse files Browse the repository at this point in the history
* Add oauth2 client-credentials example

Add an example for oauth2 config with client-credentials, valid status response codes, token url, etc.

Signed-off-by: javivaz <[email protected]>

* Remove commented config

Signed-off-by: Suraj Nath <[email protected]>

---------

Signed-off-by: javivaz <[email protected]>
Signed-off-by: Suraj Nath <[email protected]>
Co-authored-by: Suraj Nath <[email protected]>
  • Loading branch information
spanishkangaroo and electron0zero authored Mar 22, 2023
1 parent a744f2b commit 32b5f40
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@ modules:
basic_auth:
username: "username"
password: "mysecret"
http_2xx_oauth_client_credentials:
prober: http
timeout: 5s
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2"]
follow_redirects: true
preferred_ip_protocol: "ip4"
valid_status_codes:
- 200
- 201
oauth2:
client_id: "client_id"
client_secret: "client_secret"
token_url: "https://api.example.com/token"
endpoint_params:
grant_type: "client_credentials"
http_custom_ca_example:
prober: http
http:
Expand Down

0 comments on commit 32b5f40

Please sign in to comment.