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

Provide way to make arbitrary api calls #479

Closed
jsoref opened this issue Aug 18, 2022 · 2 comments
Closed

Provide way to make arbitrary api calls #479

jsoref opened this issue Aug 18, 2022 · 2 comments
Labels
feature request A feature has been asked for or suggested by the community

Comments

@jsoref
Copy link
Contributor

jsoref commented Aug 18, 2022

Describe the problem you'd like to have solved

I have a broken app (caused entirely by the Auth0 apis, either directly by manage.auth0.com, or possibly by terraform-auth0, or possibly by auth0-cli).

auth0/terraform-provider-auth0#266 (comment) suggested that I could use https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id to fix my app.

I'd like to be able to perform that api call using the auth0 cli.

Describe the ideal solution

The auth0 cli appears to be modeled after gh which provides gh api which enables one to make authenticated api calls.

I'd like to be able to use auth0 api in the same manner (and be told by the documentation that currently suggests the web page w/ a form that doesn't work how to perform the api calls using that feature...)

Alternatives and current work-arounds

I could probably create a new token and manually use curl, but since I have already set up auth0 and it's supposed to be a shiny frontend to the auth0 management api, it should really just do what I need.

Additional context

https://github.com/cli/cli/blob/6a8deb1f5a9f2aa0ace2eb154523f3b9f23a05ae/pkg/cmd/api/api.go#L65-L68
https://github.com/cli/cli/blob/6a8deb1f5a9f2aa0ace2eb154523f3b9f23a05ae/pkg/cmd/api/api.go#L83-L96

@sergiught sergiught added the feature request A feature has been asked for or suggested by the community label Oct 10, 2022
@sergiught
Copy link
Contributor

sergiught commented Nov 30, 2022

Hey @jsoref 👋🏻 , thanks for the feature request!

This was added in the latest release https://github.com/auth0/auth0-cli/releases/tag/v0.13.0 and it is now available when using the device code flow authentication.

Please give it a try and let us know if you encounter any issues.

Docs: https://auth0.github.io/auth0-cli/auth0_api.html.

@jsoref
Copy link
Contributor Author

jsoref commented Nov 30, 2022

Awesome. I imagine we'll be revisiting poking auth0 w/in the next 3 months, so I expect we'll look then.

(We recently started working on retooling the chain that led to this request.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

2 participants