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
fd212c2a
Unverified
Commit
fd212c2a
authored
Oct 20, 2016
by
Thomas Müller
Browse files
Allow registration of federated auth
parent
a70222c7
Changes
1
Show whitespace changes
Inline
Side-by-side
apps/dav/lib/Server.php
View file @
fd212c2a
...
...
@@ -75,17 +75,16 @@ class Server {
$this
->
server
->
setBaseUri
(
$this
->
baseUri
);
$this
->
server
->
addPlugin
(
new
BlockLegacyClientPlugin
(
\
OC
::
$server
->
getConfig
()));
$authPlugin
=
new
Plugin
();
$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