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

feat: add get-token command for fetching user-facing tokens for an API #69

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

paddycarey
Copy link
Contributor

https://auth0team.atlassian.net/browse/A0CLI-18

Watch the video

This PR adds the ability to fetch a token for a given client and API, with user-specified scopes.

NOTE: This is the flow for a user-facing token, the client credentials flow is being tackled seperately.

This could 100% be refactored, will tackle that after.

Copy link
Contributor

@jfatta jfatta left a comment

Choose a reason for hiding this comment

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

I'd suggest having this under auth0 clients get-token for consistency. But if they're waiting for this for the demo feel free to merge it

@paddycarey
Copy link
Contributor Author

To me it feels more like a top-level command like try-login, since it can be used without specifying a client and actually relates to APIs too.

I think we should keep subcommands for actions related to the top-level resource, like CRUD operations on clients/apis/rules/whatever. But I think that's a higher-level discussion for another forum 🤷🏻

@paddycarey paddycarey merged commit 73d17cd into main Jan 27, 2021
@paddycarey paddycarey deleted the a0cli-18 branch January 27, 2021 14:03
@jfatta
Copy link
Contributor

jfatta commented Jan 27, 2021

makes sense :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants