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

Return WWW-Authenticate HTTP response header for access token problems #204

Open
jpraet opened this issue Oct 21, 2024 · 1 comment
Open

Comments

@jpraet
Copy link
Contributor

jpraet commented Oct 21, 2024

Shouldn't these problem responses contain a WWW-Authenticate HTTP response header?

See https://www.rfc-editor.org/rfc/rfc6750#section-3

If the protected resource request does not include authentication
credentials or does not contain an access token that enables access
to the protected resource, the resource server MUST include the HTTP
"WWW-Authenticate" response header field;

@pvdbosch
Copy link
Contributor

Yes I guess they should.
We could add it to the example and also refer to it in the problem type description, referring to the OAuth2 spec for further info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants