Commit 0c3852b
authored
fix: add configurable timeout setting for OneLogin provider (#137)
This pull request introduces a new configuration option for setting a
timeout in the OneLogin provider. The addition allows users to specify
the timeout for API operations, improving flexibility and control over
API interactions.
### Enhancements to OneLogin provider configuration:
*
[`onelogin/provider.go`](diffhunk://#diff-67f9eb98d74e43b0177e4868b4575c740c8fed94dc98974964d3601c3c609b94R42-R47):
Added a new `timeout` configuration option to the provider schema. This
option allows users to set a timeout in seconds for API operations, with
a default value of 60 seconds. The value can also be sourced from the
`ONELOGIN_CLIENT_TIMEOUT` environment variable.
*
[`onelogin/provider.go`](diffhunk://#diff-67f9eb98d74e43b0177e4868b4575c740c8fed94dc98974964d3601c3c609b94L73-R83):
Updated the `configProvider` function to retrieve the `timeout` value
from the configuration and pass it to the `client.APIClientConfig`. This
replaces the previous hardcoded default timeout.1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
73 | | - | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | | - | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| |||
0 commit comments