Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
a70222c7
Unverified
Commit
a70222c7
authored
Oct 12, 2016
by
Thomas Citharel
Committed by
Thomas Müller
Nov 08, 2016
Browse files
Register only one dav auth backend
parent
9fe34ef9
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/dav/lib/Server.php
View file @
a70222c7
...
...
@@ -75,17 +75,17 @@ class Server {
$this
->
server
->
setBaseUri
(
$this
->
baseUri
);
$this
->
server
->
addPlugin
(
new
BlockLegacyClientPlugin
(
\
OC
::
$server
->
getConfig
()));
$authPlugin
=
new
Plugin
();
$authPlugin
->
addBackend
(
$authBackend
);
$authPlugin
->
addBackend
(
new
PublicAuth
());
$this
->
server
->
addPlugin
(
$authPlugin
);
// allow setup of additional auth backends
$event
=
new
SabrePluginEvent
(
$this
->
server
);
$dispatcher
->
dispatch
(
'OCA\DAV\Connector\Sabre::authInit'
,
$event
);
// because we are throwing exceptions this plugin has to be the last one
$authPlugin
=
new
Plugin
();
$authPlugin
->
addBackend
(
$authBackend
);
$authPlugin
->
addBackend
(
new
PublicAuth
());
$this
->
server
->
addPlugin
(
$authPlugin
);
// debugging
if
(
\
OC
::
$server
->
getConfig
()
->
getSystemValue
(
'debug'
,
false
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment