Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2020-09-04 13:31:53 +0300
committerGitHub <noreply@github.com>2020-09-04 13:31:53 +0300
commit514392a7ede45e8f110c1a58750f57b8f4a5dcce (patch)
tree356b6bd9075410323c20eb4fd926116fb0206d9e
parent90bc1b25b6a5d985081b22e9dff401e2aac2fdb5 (diff)
parent2e8f66883073a1855706556100873c4ec0775c6e (diff)
Merge pull request #436 from nextcloud/fix/env/oauth
Ignore the oauth token path in login with the environment variables
-rw-r--r--appinfo/app.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 11aa7e8f..43db79eb 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -80,6 +80,12 @@ switch($config->getAppValue('user_saml', 'type')) {
}
if ($type === 'environment-variable') {
+ // We should ignore oauth2 token endpoint (oauth can send the credentials as basic auth which will fail with apache auth)
+ $uri = $request->getRequestUri();
+ if (substr($uri, -24) === '/apps/oauth/api/v1/token') {
+ return;
+ }
+
OC_User::handleApacheAuth();
}