From 615e5d6590dc30f3d16be3579f98fe029da81db2 Mon Sep 17 00:00:00 2001 From: kuannie1 Date: Thu, 26 Sep 2024 10:58:54 -0700 Subject: [PATCH] fix: add client secret --- oidc_cli/oidc_impl/client/config_options.go | 6 ++++++ 1 file changed, 6 insertions(+) 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 + } +}