Skip to content

Commit c2631f2

Browse files
committed
fix(cli): skip over coder_external_auth that are optional
1 parent 47f8f5d commit c2631f2

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-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

package-lock.json

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)