From a993e39ed1e11918e4b438881298970d697babf3 Mon Sep 17 00:00:00 2001 From: Hidetake Iwata Date: Sun, 13 Jul 2025 15:24:33 +0900 Subject: [PATCH] Update help message and doc (#1374) --- docs/usage.md | 2 +- pkg/cmd/authentication.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index fcf9ce2..6ab9090 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -23,7 +23,7 @@ Flags: --tls-renegotiation-once If set, allow a remote server to request renegotiation once per connection --tls-renegotiation-freely If set, allow a remote server to repeatedly request renegotiation --oidc-pkce-method string PKCE code challenge method. Automatically determined by default. One of (auto|no|S256) (default "auto") - --grant-type string Authorization grant type to use. One of (auto|authcode|authcode-keyboard|password|device-code) (default "auto") + --grant-type string Authorization grant type to use. One of (auto|authcode|authcode-keyboard|password|device-code|client-credentials) (default "auto") --listen-address strings [authcode] Address to bind to the local server. If multiple addresses are set, it will try binding in order (default [127.0.0.1:8000,127.0.0.1:18000]) --skip-open-browser [authcode] Do not open the browser automatically --browser-command string [authcode] Command to open the browser diff --git a/pkg/cmd/authentication.go b/pkg/cmd/authentication.go index 1eaf202..81cdfcf 100644 --- a/pkg/cmd/authentication.go +++ b/pkg/cmd/authentication.go @@ -56,10 +56,9 @@ func (o *authenticationOptions) addFlags(f *pflag.FlagSet) { if err := f.MarkDeprecated("oidc-redirect-url-authcode-keyboard", "use --oidc-redirect-url instead."); err != nil { panic(err) } - f.StringToStringVar(&o.AuthRequestExtraParams, "oidc-auth-request-extra-params", nil, "[authcode, authcode-keyboard] Extra query parameters to send with an authentication request") + f.StringToStringVar(&o.AuthRequestExtraParams, "oidc-auth-request-extra-params", nil, "[authcode, authcode-keyboard, client-credentials] Extra query parameters to send with an authentication request") f.StringVar(&o.Username, "username", "", "[password] Username for resource owner password credentials grant") f.StringVar(&o.Password, "password", "", "[password] Password for resource owner password credentials grant") - } func (o *authenticationOptions) expandHomedir() {