-
Notifications
You must be signed in to change notification settings - Fork 196
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
do not send www-authenticate basic for Api requests #5992
Conversation
💥 Acceptance test localApiTests-apiSpacesShares-ocis failed. Further test are cancelled... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this!
Just a few comments/questsions:
a) Why is this only relevent for basic auth?
b) The header is X-Requested-With
and the value is XmlHttpRequest
c) There is no regression test
But we can completely not show any www-authenticate headers if ok for the clients.
Thanks. Will fix
|
Ah, interesting - from oC Web prespective: the
💪🏻
Yup, fine with me - I would just highly appreciate a regression test as it's so annoying in oC Web if for whatever reason a token refresh fails or some other condition leads to invalid tokens |
d70101d
to
6e0a30b
Compare
6e0a30b
to
df537ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I get no Www-Authenticate
header at all. Not Basic
and also not Bearer
.
Is this the intended behaviour?
If you are sending |
Kudos, SonarCloud Quality Gate passed! |
do not send www-authenticate basic for Api requests
Description
Bugfix: Fix authenticate headers for API requests
We changed the www-authenticate header which should not be sent for "basic-auth" when the
XMLHttpRequest
header is set.Related Issue
Fixes #5986
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: