Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coder external-auth access-token panic when no provider name is given #10216

Closed
matifali opened this issue Oct 11, 2023 · 0 comments · Fixed by #12177
Closed

coder external-auth access-token panic when no provider name is given #10216

matifali opened this issue Oct 11, 2023 · 0 comments · Fixed by #12177
Assignees
Labels
bug Used to filter all bug issues s3 Bugs that confuse, annoy, or are purely cosmetic

Comments

@matifali
Copy link
Collaborator

coder@test:~$ coder external-auth access-token
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/coder/coder/v2/cli.(*RootCmd).externalAuthAccessToken.func1(0xc00068c200)
        /home/runner/actions-runner/_work/coder/coder/cli/externalauth.go:75 +0x778
github.com/coder/coder/v2/cli.(*RootCmd).Command.func6.1(0x0?)
        /home/runner/actions-runner/_work/coder/coder/cli/root.go:282 +0xd1
github.com/coder/coder/v2/cli/clibase.(*Invocation).run(0xc00068c200, 0xc00059be00)
        /home/runner/actions-runner/_work/coder/coder/cli/clibase/cmd.go:388 +0x10b2
github.com/coder/coder/v2/cli/clibase.(*Invocation).run(0xc00068c000, 0xc00059be00)
        /home/runner/actions-runner/_work/coder/coder/cli/clibase/cmd.go:325 +0xb5e
github.com/coder/coder/v2/cli/clibase.(*Invocation).run(0xc00068c000, 0xc00059be00)
        /home/runner/actions-runner/_work/coder/coder/cli/clibase/cmd.go:325 +0xb5e
github.com/coder/coder/v2/cli/clibase.(*Invocation).Run(0xc00059beb8?)
        /home/runner/actions-runner/_work/coder/coder/cli/clibase/cmd.go:478 +0xe5
github.com/coder/coder/v2/cli.(*RootCmd).RunMain(0xc000225400, {0xc000626000, 0x26, 0x40})
        /home/runner/actions-runner/_work/coder/coder/cli/root.go:137 +0x1aa
main.main()
        /home/runner/actions-runner/_work/coder/coder/enterprise/cmd/coder/main.go:11 +0x45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to filter all bug issues s3 Bugs that confuse, annoy, or are purely cosmetic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants