[Bug]: Step-cli: error generating OIDC token: exec "step oauth" failed

オープン
#1,521 コメント 2 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hslatman がすでに取り組んでいます。

2026年3月3日 から。

評価

この issue はまだ評価されていません。

説明

bug needs triage
Steps to Reproduce
  • Download step-cli for Windows (amd64).
  • Extract the folder
  • run step ssh certificate key-id key-file --ca-url https://step-ca-url --root your_root_cert.pem --provisioner=name_of_provisioner
Your Environment
  • OS - Windows 11 23H2
  • step CLI Version - Smallstep CLI/0.28.7 (windows/amd64)
Expected Behavior

I would expect it to open the Identity provider in a new browser window.

Running step oauth --provider https://your-idp --listen :10000 --client-id id --client-secret secret works fine.

I also notice that the step-cli under Windows seems to have some output issues.

When I just run step it says:

step
←[0;1;99mNAME←[0m
      ←[0;1;99mstep←[0m -- plumbing for distributed systems

←[0;1;99mUSAGE←[0m
      ←[0;1;99mstep←[0m ←[0;4;39mcommand←[0m ←[0;4;39m[arguments]←[0m

←[0;1;99mOPTIONS←[0m
      ←[0;1;99m--help←[0m, ←[0;1;99m-h←[0m
          show help

      ←[0;1;99m--config←[0m=←[0;4;39mvalue←[0m
          path to the config file to use for CLI flags

      ←[0;1;99m--version←[0m, ←[0;1;99m-v←[0m
          print the version

so I guess the 2 topics could be combined. step ssh certificate would need to contact the Step server and gets the OIDC info back. Maybe those funny characters are also included when it tries to build the oauth string. I can see the step-cli contacting the step-server and queries the list of provisioners. On the IdP I can't see any activity.

Actual Behavior

Output is: error generating OIDC token: exec "step oauth" failed

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).

主要言語
Go
スター
4.3k
フォーク
320
平均マージ
2日 3時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

smallstep/cli のほかの issue

smallstep/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。