Skip to content

Commit 973ccd7

Browse files
committed
fix(auth): Interactive auth if no scopes are passed then don't pass array of empty string.
Signed-off-by: spbsoluble <[email protected]>
1 parent 4bdd166 commit 973ccd7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/login.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,9 @@ func authInteractive(
485485
"OAuth Scopes",
486486
strings.Join(serverConf.Scopes, ","),
487487
)
488-
serverConf.Scopes = strings.Split(scopesCsv, ",")
488+
if scopesCsv != "" && scopesCsv != "," {
489+
serverConf.Scopes = strings.Split(scopesCsv, ",")
490+
}
489491
}
490492
if serverConf.Audience == "" || forcePrompt {
491493
log.Debug().Msg("prompting for OAuth audience")

0 commit comments

Comments
 (0)