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

Allow limited management api scopes when authing #556

Closed
1 task done
Jrc356 opened this issue Dec 15, 2022 · 2 comments
Closed
1 task done

Allow limited management api scopes when authing #556

Jrc356 opened this issue Dec 15, 2022 · 2 comments
Labels
feature request A feature has been asked for or suggested by the community

Comments

@Jrc356
Copy link

Jrc356 commented Dec 15, 2022

Checklist

Describe the problem you'd like to have solved

We have some pipelines that build frontend apps that require client IDs. Rather than sticking them in secrets some way, it would be incredibly handy to be able to pull the client IDs using this cli. However, its a little sketchy that the CLI requires all scopes to the management API. It would be great if I could just allow the client I auth with to have the read:clients scope. However, if I create a client with only that scope and attempt to auth with the cli, it fails saying that it needs all the scopes for the management API.

Describe the ideal solution

I'd like to be able to create a client that can interact with specific cli commands. For example, if I want to only be able to read clients, I would create a client with the read:clients scope and be able to perform client read commands with the CLI

Alternatives and current workarounds

Don't think there's really an alternative to this as its a requirement of the CLI that the client used has all scopes of the management api

Additional context

No response

@Jrc356 Jrc356 added the feature request A feature has been asked for or suggested by the community label Dec 15, 2022
@willvedd
Copy link
Contributor

I agree that requiring all scopes on the client is a bit sketchy. The original intent was to ensure a quality DX, but we've dropped a similar requirement in the Auth0 Deploy CLI without issue; the Auth0 Terraform Provider has no such requirement either.

We're currently in the midst of making improvements to the login experience so there's a chance this could be bundled in with that work. I'll keep this thread updated over the next several weeks.

@willvedd
Copy link
Contributor

willvedd commented Dec 1, 2023

Update: Appreciate the suggestion. We included this into v1.3.0. So now when authenticating with client credentials, there is no verification against a required set of scopes. This will allow users to tightly-scope the purview of their CLI client to their specific use case.

@willvedd willvedd closed this as completed Dec 1, 2023
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