From 4d08c52afd99d69e0f6d2a42e6206d15c839035d Mon Sep 17 00:00:00 2001 From: Jim Date: Tue, 30 May 2023 12:04:05 -0400 Subject: [PATCH] feat (authenticate/oidc): support outputting auth url (#3247) --- internal/cmd/commands/authenticate/oidc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/commands/authenticate/oidc.go b/internal/cmd/commands/authenticate/oidc.go index ba79bf76ef..7f86d2fa68 100644 --- a/internal/cmd/commands/authenticate/oidc.go +++ b/internal/cmd/commands/authenticate/oidc.go @@ -69,7 +69,6 @@ func (c *OidcCommand) Flags() *base.FlagSets { Usage: "The scope ID to use for the operation.", }) } - return set } @@ -145,10 +144,11 @@ func (c *OidcCommand) Run(args []string) int { if base.Format(c.UI) == "table" { c.UI.Output("Opening returned authentication URL in your browser...") + c.UI.Output(startResp.AuthUrl) } if err := util.OpenURL(startResp.AuthUrl); err != nil { c.UI.Error(fmt.Errorf("Unable to open authentication URL in browser: %w", err).Error()) - c.UI.Warn("Please open the following URL manually in your web browser:") + c.UI.Warn("Please copy and paste this link into a browser manually:") c.UI.Output(startResp.AuthUrl) }