diff --git a/oidc_cli/oidc_impl/client/config_options.go b/oidc_cli/oidc_impl/client/config_options.go index c21cbffd..b48b3332 100644 --- a/oidc_cli/oidc_impl/client/config_options.go +++ b/oidc_cli/oidc_impl/client/config_options.go @@ -32,3 +32,9 @@ var AddScope = func(scope string) Option { c.oauthConfig.Scopes = append(c.oauthConfig.Scopes, scope) } } + +var AddClientSecret = func(secret string) Option { + return func(c *Client) { + c.oauthConfig.ClientSecret = secret + } +}