8000 fix(cli): skip optional coder_external_auth (#13368) · coder/coder@bc8126f · GitHub
[go: up one dir, main page]

Skip to content < 8000 script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit bc8126f

Browse files
fix(cli): skip optional coder_external_auth (#13368)
* fix(cli): skip over coder_external_auth that are optional * chore: Delete package-lock.json
1 parent 5789ea5 commit bc8126f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/cliui/externalauth.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ func ExternalAuth(ctx context.Context, writer io.Writer, opts ExternalAuthOption
3737
if auth.Authenticated {
3838
return nil
3939
}
40+
if auth.Optional {
41+
continue
42+
}
4043

4144
_, _ = fmt.Fprintf(writer, "You must authenticate with %s to create a workspace with this template. Visit:\n\n\t%s\n\n", auth.DisplayName, auth.AuthenticateURL)
4245

0 commit comments

Comments
 (0)
0