Skip to content

Commit

Permalink
fix: add client secret
Browse files Browse the repository at this point in the history
  • Loading branch information
kuannie1 committed Sep 26, 2024
1 parent 0354306 commit 615e5d6
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 @@ -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
}
}

0 comments on commit 615e5d6

Please sign in to comment.