* 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 <javier.vazquez.romera@gmail.com>
* Remove commented config
Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
---------
Signed-off-by: javivaz <javier.vazquez.romera@gmail.com>
Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
Co-authored-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
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: