You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: extension/oauth2clientauthextension/README.md
+3
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ extensions:
38
38
key_file: keyfile
39
39
# timeout for the token client
40
40
timeout: 2s
41
+
# buffer time before token expiry to refresh
42
+
expiry_buffer: 10s
41
43
42
44
receivers:
43
45
hostmetrics:
@@ -84,5 +86,6 @@ Following are the configuration fields
84
86
- [**scopes**](https://datatracker.ietf.org/doc/html/rfc6749#section-3.3) - **Optional** optional requested permissions associated for the client.
85
87
- [**timeout**](https://golang.org/src/net/http/client.go#L90) - **Optional** specifies the timeout on the underlying client to authorization server for fetching the tokens (initial and while refreshing).
86
88
This is optional and not setting this configuration implies there is no timeout on the client.
89
+
- **expiry_buffer** - **Optional** Specifies the time buffer to refresh the access token before it expires, preventing authentication failures due to token expiration. The default value is 5m.
87
90
88
91
For more information on client side TLS settings, see [configtls README](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/configtls).
0 commit comments