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

Make 'scopes' optional in oauth2clientcredentials middleware #3406

Open
anschoewe opened this issue Apr 29, 2024 · 2 comments
Open

Make 'scopes' optional in oauth2clientcredentials middleware #3406

anschoewe opened this issue Apr 29, 2024 · 2 comments
Labels
kind/enhancement New feature or request

Comments

@anschoewe
Copy link

In what area(s)?

/area runtime

/area operator

/area placement

/area docs

/area test-and-release

Describe the feature

Not all OAuth2 token issuers require scopes during the client_credential token exchange. For example, Auth0 does not accept 'scopes'.

Therefore, I believe 'scopes' should be optional in the oauth2clientcredentials middleware component. It's currently required to have a value.

Release Note

oauth2clientcredentials now supports optional scopes, making it compatible with token issuer's like Auth0.

RELEASE NOTE:

@berndverst
Copy link
Member

Are you able to configure Auth0 using an empty value for the scopes today?

@anschoewe
Copy link
Author

Yes. I’ve been using it for years without specifying a scope. By that I mean I don’t even pass the key “scopes” in the request. Totally absent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants