Comments (5)
Hey @iegby 👋🏻 ,
We recently added a new command 🧰 auth0 api <method> <url-path> [flags]
that is able to make authenticated requests against the management API (https://auth0.com/docs/api/management/v2).
This command is available with https://github.com/auth0/auth0-cli/releases/tag/v0.13.0.
📖 Docs for this command: https://auth0.github.io/auth0-cli/auth0_api.html
Although it doesn't offer first class support for managing client grants, you could use it as an alternative until we have a more dedicated command for this.
Feedback is much appreciate for this new command 🙏🏻 Let us know if you encounter any issues with it.
We'll keep this issue open however until we are able to add a dedicated first class command to manage client grants.
Thanks for your patience! ❤️
from auth0-cli.
That new command is a versatile tool, and I'd be pretty happy to use it. In this case, however, auth0.exe lacks the necessary scope:
❯ auth0 api get client-grants
{
"statusCode": 403,
"error": "Forbidden",
"message": "Insufficient scope, expected any of: read:client_grants",
"errorCode": "insufficient_scope"
}
The required scopes appear to be listed in auth0.go, but I haven't yet tried building auth0.exe myself.
from auth0-cli.
Hey @iegby 👋🏻 thanks for the feedback and trying the new command out! 🙌🏻 That's something we missed for the device code flow (when you authenticate as a user), allowing the user to request additional scopes. It will however work if you use the client credentials flow (when you authenticate as a machine). We'll patch the device code flow as well next week tho, stay tuned! 🙇🏻
from auth0-cli.
Hey @iegby, we just released https://github.com/auth0/auth0-cli/releases/tag/v0.13.1. Mind giving that a try? 🙏🏻
from auth0-cli.
Yes, that works a treat, and without me specifying additional required scopes. This is enough for me to script my workflow. Thank you!
from auth0-cli.
Related Issues (20)
- I would like to request the db management using the CLI HOT 2
- auth0 test token ignoring --no-input HOT 2
- Auth0 Custom UI bug HOT 3
- Always getting "something went wrong" error on `auth0 branding texts update signup` command HOT 9
- Preview template of an existing `html` file
- Allow limited management api scopes when authing HOT 1
- Real access token from CLI only HOT 1
- Error when trying to edit login-id prompt text HOT 1
- auth0 branding templates update throws panic HOT 3
- Storybook not starting when updating the UL HOT 1
- Block a user account HOT 2
- Order APIs list by Name, Identifier or Scopes
- Add Search support for apis and apps list commands
- Could auth0 cli log stream evengrid create support filters as an input parameter
- CLI completely freezes on WSL2 HOT 3
- Feature Request: Support a flag to specify whether to authenticate as a user or machine HOT 2
- Feature Request: Expand `auth0 tenants` to output CLI's active tenant domain HOT 3
- Universal login: Choice of editor HOT 2
- auth0 users blocks list <user-id> and auth0 users blocks unblock <user-id> should allow name and email as indefier HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth0-cli.