From 4688d91f2de97c3b8633034839e592c150115024 Mon Sep 17 00:00:00 2001 From: ostempel Date: Thu, 4 Dec 2025 16:56:53 +0100 Subject: [PATCH] change default provider to openid-connect --- cmd/login.go | 4 ++-- cmd/logout.go | 4 ++-- docs/metalctlv2_login.md | 2 +- docs/metalctlv2_logout.md | 2 +- docs/metalctlv2_tenant_invite.md | 1 + 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/login.go b/cmd/login.go index 739d77d..960a172 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -36,12 +36,12 @@ func newLoginCmd(c *config.Config) *cobra.Command { }, } - loginCmd.Flags().String("provider", "oidc", "the provider used to login with") + loginCmd.Flags().String("provider", "openid-connect", "the provider used to login with") loginCmd.Flags().String("context", "", "the context into which the token gets injected, if not specified it uses the current context or creates a context named default in case there is no current context set") loginCmd.Flags().String("admin-role", "", "operators can use this flag to issue an admin token with the token retrieved from login and store this into context") genericcli.Must(loginCmd.Flags().MarkHidden("admin-role")) - genericcli.Must(loginCmd.RegisterFlagCompletionFunc("provider", cobra.FixedCompletions([]string{"oidc"}, cobra.ShellCompDirectiveNoFileComp))) + genericcli.Must(loginCmd.RegisterFlagCompletionFunc("provider", cobra.FixedCompletions([]string{"openid-connect"}, cobra.ShellCompDirectiveNoFileComp))) genericcli.Must(loginCmd.RegisterFlagCompletionFunc("admin-role", c.Completion.TokenAdminRoleCompletion)) return loginCmd diff --git a/cmd/logout.go b/cmd/logout.go index 19788e2..1cd4f5b 100644 --- a/cmd/logout.go +++ b/cmd/logout.go @@ -33,10 +33,10 @@ func newLogoutCmd(c *config.Config) *cobra.Command { }, } - logoutCmd.Flags().String("provider", "oidc", "the provider used to logout with") + logoutCmd.Flags().String("provider", "openid-connect", "the provider used to logout with") logoutCmd.Flags().String("context-name", "", "the context into which the token gets injected, if not specified it uses the current context or creates a context named default in case there is no current context set") - genericcli.Must(logoutCmd.RegisterFlagCompletionFunc("provider", cobra.FixedCompletions([]string{"oidc"}, cobra.ShellCompDirectiveNoFileComp))) + genericcli.Must(logoutCmd.RegisterFlagCompletionFunc("provider", cobra.FixedCompletions([]string{"openid-connect"}, cobra.ShellCompDirectiveNoFileComp))) return logoutCmd } diff --git a/docs/metalctlv2_login.md b/docs/metalctlv2_login.md index 7315df6..28e50a8 100644 --- a/docs/metalctlv2_login.md +++ b/docs/metalctlv2_login.md @@ -11,7 +11,7 @@ metalctlv2 login [flags] ``` --context string the context into which the token gets injected, if not specified it uses the current context or creates a context named default in case there is no current context set -h, --help help for login - --provider string the provider used to login with (default "oidc") + --provider string the provider used to login with (default "openid-connect") ``` ### Options inherited from parent commands diff --git a/docs/metalctlv2_logout.md b/docs/metalctlv2_logout.md index ee3a40b..bc7f032 100644 --- a/docs/metalctlv2_logout.md +++ b/docs/metalctlv2_logout.md @@ -11,7 +11,7 @@ metalctlv2 logout [flags] ``` --context-name string the context into which the token gets injected, if not specified it uses the current context or creates a context named default in case there is no current context set -h, --help help for logout - --provider string the provider used to logout with (default "oidc") + --provider string the provider used to logout with (default "openid-connect") ``` ### Options inherited from parent commands diff --git a/docs/metalctlv2_tenant_invite.md b/docs/metalctlv2_tenant_invite.md index aa0c0e5..16bea96 100644 --- a/docs/metalctlv2_tenant_invite.md +++ b/docs/metalctlv2_tenant_invite.md @@ -26,5 +26,6 @@ manage tenant invites * [metalctlv2 tenant](metalctlv2_tenant.md) - manage tenant entities * [metalctlv2 tenant invite delete](metalctlv2_tenant_invite_delete.md) - deletes a pending invite * [metalctlv2 tenant invite generate-join-secret](metalctlv2_tenant_invite_generate-join-secret.md) - generate an invite secret to share with the new member +* [metalctlv2 tenant invite join](metalctlv2_tenant_invite_join.md) - join a tenant of someone who shared an invite secret with you * [metalctlv2 tenant invite list](metalctlv2_tenant_invite_list.md) - lists the currently pending invites