Adjust realm from SabreDAV to Nextcloud
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
f93db724d7
commit
639ba526d0
2 changed files with 6 additions and 2 deletions
|
@ -50,6 +50,10 @@ class BearerAuth extends AbstractBearer {
|
|||
$this->session = $session;
|
||||
$this->request = $request;
|
||||
$this->principalPrefix = $principalPrefix;
|
||||
|
||||
// setup realm
|
||||
$defaults = new \OCP\Defaults();
|
||||
$this->realm = $defaults->getName();
|
||||
}
|
||||
|
||||
private function setupUserFs($userId) {
|
||||
|
|
|
@ -8,7 +8,7 @@ Feature: webdav-related
|
|||
Then the HTTP status code should be "401"
|
||||
And there are no duplicate headers
|
||||
And The following headers should be set
|
||||
|WWW-Authenticate|Basic realm="Nextcloud"|
|
||||
|WWW-Authenticate|Basic realm="Nextcloud", Bearer realm="Nextcloud"|
|
||||
|
||||
Scenario: Unauthenticated call new dav path
|
||||
Given using new dav path
|
||||
|
@ -16,7 +16,7 @@ Feature: webdav-related
|
|||
Then the HTTP status code should be "401"
|
||||
And there are no duplicate headers
|
||||
And The following headers should be set
|
||||
|WWW-Authenticate|Basic realm="Nextcloud"|
|
||||
|WWW-Authenticate|Basic realm="Nextcloud", Bearer realm="Nextcloud"|
|
||||
|
||||
Scenario: Moving a file
|
||||
Given using old dav path
|
||||
|
|
Loading…
Reference in a new issue