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

Create API tokens with team slug #980

Merged
merged 2 commits into from
Jul 14, 2023
Merged

Create API tokens with team slug #980

merged 2 commits into from
Jul 14, 2023

Conversation

areed
Copy link
Contributor

@areed areed commented Jul 11, 2023

Name of feature:

API auth tokens with team slug

Pain or issue this feature alleviates:

Previous you needed to supply the team UUID to get an auth token for the API.

Why is this important to the project (if not answered above):

Is there documentation on how to use this feature? If so, where?

In what environments or workflows is this feature supported?

Getting an auth token from the Gateway API.

In what environments or workflows is this feature explicitly NOT supported (if any)?

Supporting links/other PRs/issues:

💔Thank you!

@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label Jul 11, 2023
@areed areed requested a review from maraino July 11, 2023 20:39
Copy link
Collaborator

@maraino maraino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of suggestions for the help.

@@ -21,7 +21,7 @@ func createCommand() cli.Command {
Name: "create",
Action: cli.ActionFunc(createAction),
Usage: "create a new token",
UsageText: `**step api token create** <team-id> <crt-file> <key-file>
UsageText: `**step api token create** <team-id>|<team-slug> <crt-file> <key-file>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use just and use the text in the positional arguments to actually describe what that argument means.

Suggested change
UsageText: `**step api token create** <team-id>|<team-slug> <crt-file> <key-file>
UsageText: `**step api token create** <team> <crt-file> <key-file>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -32,8 +32,8 @@ func createCommand() cli.Command {

## POSITIONAL ARGUMENTS

<team-id>
: UUID of the team the API token will be issued for. This is available in the Smallstep dashboard.
<team-id>|<team-slug>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<team-id>|<team-slug>
<team>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@maraino maraino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@areed areed merged commit b9293b3 into master Jul 14, 2023
13 of 14 checks passed
@areed areed deleted the areed/auth-token-team-slug branch July 14, 2023 16:24
@hslatman hslatman added this to the v0.24.5 milestone Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants