Code Monkey home page Code Monkey logo

Comments (5)

sergiught avatar sergiught commented on June 21, 2024

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

:octocat: 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.

iegby avatar iegby commented on June 21, 2024

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.

sergiught avatar sergiught commented on June 21, 2024

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.

sergiught avatar sergiught commented on June 21, 2024

Hey @iegby, we just released https://github.com/auth0/auth0-cli/releases/tag/v0.13.1. Mind giving that a try? 🙏🏻

from auth0-cli.

iegby avatar iegby commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.