diff --git a/oidc_cli/oidc_impl/client/config_options.go b/oidc_cli/oidc_impl/client/config_options.go index cb1719dd..813f2604 100644 --- a/oidc_cli/oidc_impl/client/config_options.go +++ b/oidc_cli/oidc_impl/client/config_options.go @@ -23,3 +23,9 @@ var SetOauth2AuthStyle = func(authStyle oauth2.AuthStyle) Option { c.OauthConfig.Endpoint.AuthStyle = authStyle } } + +var SetScopeOptions = func(scopes []string) Option { + return func(c *Client) { + c.OauthConfig.Scopes = scopes + } +}