Skip to content

Commit

Permalink
setscopeoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
alldoami committed Dec 18, 2024
1 parent 7de7eb0 commit bb7f3b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions oidc_cli/oidc_impl/client/config_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit bb7f3b4

Please sign in to comment.