[Bug]: Github OAuth Console errors too quickly

Open
#1,330 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@dopey is already working on this.

Since Dec 17, 2024.

Assessment

This issue has not been assessed yet.

Description

bug needs triage
Steps to Reproduce
$ step oauth --provider github --client-id ${github-app-client-id} --console
Your Environment
  • OS - Fedora 40
  • step CLI Version -
Smallstep CLI/0.28.2 (linux/amd64)
Release Date: 2024-11-20T19:14:16Z
Expected Behavior

The CLI to not error and wait an appropriate amount of time

Actual Behavior
$ step oauth --provider github --client-id ${github-app-client-id} --console
Visit https://github.com/login/device and enter the code:
5008-218F
{
  "access_token": "",
  "id_token": "",
  "refresh_token": "",
  "expires_in": 0,
  "token_type": "",
  "error": "authorization_pending",
  "error_description": "The authorization request is still pending."
}

This returns after 5 seconds, which isn't enough time to open the browser and enter the code.

Additional Context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Dominant language
Go
Stars
4.3k
Forks
320
Avg merge
1d 21h
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from smallstep/cli

All issues in smallstep/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.