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

the invalid_client error and HTTP authentication schemas #162

Open
adeinega opened this issue Aug 4, 2023 · 1 comment
Open

the invalid_client error and HTTP authentication schemas #162

adeinega opened this issue Aug 4, 2023 · 1 comment
Labels
interim Items to discuss in the next WG interim meeting

Comments

@adeinega
Copy link
Contributor

adeinega commented Aug 4, 2023

https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-09#section-3.2.3.1 says that

"invalid_client": Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). The authorization server MAY return an HTTP 401 (Unauthorized) status code to indicate which HTTP authentication schemes are supported.

I am not so sure if it's possible to indicate HTTP authentication schemas for private_key_jwt and client_secret_jwt client authentication types.

This text also indicates that multiple authentication schemas are supported. Thus, does the authorization server need to specify multiple WWW-Authenticate headers, say "WWW-Authenticate: Basic" and "WWW-Authenticate: Bearer"?

It would be great to clarify these nuances.

@aaronpk aaronpk added the interim Items to discuss in the next WG interim meeting label May 11, 2024
@jogu
Copy link

jogu commented May 14, 2024

I'm honestly not sure how much useful behaviour can really be dictated about invalid_client errors.

I wonder if there are any clients that attempt to parse the WWW-Authenticate header and try a different authentication mechanism? The clients I'm aware of all require the client authentication to be explicitly configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interim Items to discuss in the next WG interim meeting
Projects
None yet
Development

No branches or pull requests

3 participants