Skip to content

Commit

Permalink
Merge pull request #368 from okta/add-config-setter-object
Browse files Browse the repository at this point in the history
add config setter object for v3
  • Loading branch information
duytiennguyen-okta authored Mar 30, 2023
2 parents 056faf9 + 4ac61b8 commit bdb33e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .generator/templates/configuration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,12 @@ func WithCacheTti(i int32) ConfigSetter {
}
}

func WithHttpClientPtr(httpClient *http.Client) ConfigSetter {
return func(c *Configuration) {
c.HTTPClient = httpClient
}
}

func WithConnectionTimeout(i int64) ConfigSetter {
return func(c *Configuration) {
c.Okta.Client.ConnectionTimeout = i
Expand Down

0 comments on commit bdb33e7

Please sign in to comment.