-
Notifications
You must be signed in to change notification settings - Fork 786
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
🚀 Feature Request: [API tokens] describe the current permissions in wrangler whoami
#1371
Labels
blocked
Blocked on other work
enhancement
New feature or request
internal
Requires support from the Cloudflare Platform
Comments
wrangler whoami
wrangler whoami
cameron-robey
added a commit
that referenced
this issue
Jul 27, 2022
Often users experience issues due to tokens not having the correct permissions associated with them (often due to new scopes being created for new products). With this, we print out a list of permissions associated with OAuth tokens with the wrangler whoami command to help them debug for OAuth tokens. We cannot access the permissions on an API key, so we direct the user to the location in the dashboard to achieve this. We also cache the scopes of OAuth tokens alongside the access and refresh tokens in the .wrangler/config file to achieve this. Currently unable to implement #1371 - instead directs the user to the dashboard. Resolves #1540
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
blocked
Blocked on other work
enhancement
New feature or request
internal
Requires support from the Cloudflare Platform
Describe the solution
When running
wrangler whoami
we should display a list of allowed permissions for the current authenticated user (or API token). This will help with scenarios where other commands fail with authorisation errors from the backend API.The text was updated successfully, but these errors were encountered: