You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add hint in 401 response when regular password is disabled (2FA) #25091
When two factor auth is enabled, Webdav doesn't accept regular login/password but only tokens.
In order for the clients to be able to display a useful message for users, the server should return additional info in the 401 Webdav response.
The current 401 response looks like this:
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
<s:message>No 'Authorization: Basic' header found. Either the client didn't send one, or the server is mis-configured</s:message>
</d:error>
So either use another exception name or try adding a "s:reason" block with a message or a hint that the client can parse.
Activity
lock commentedon Aug 4, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.