-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing authentication to servers without mod_rewrite (Webfaction) #294
Comments
The app basically should do this: //sett http auth headers for Webfaction workaround
if(isset($_GET['Authorization']) && preg_match('/Basic\s+(.*)$/i', $_GET['Authorization'], $matches))
{
list($name, $password) = explode(':', base64_decode($matches[1]));
$_SERVER['PHP_AUTH_USER'] = strip_tags($name);
$_SERVER['PHP_AUTH_PW'] = strip_tags($password);
} within the server/apps/user_ldap/appinfo/info.xml Lines 13 to 15 in 969cfa2
Is this correct @LukasReschke ? |
Does the app need to change the .htaccess too? |
No, the app only needs to execute the code from above in it's app.php |
Hi, why did you close it? Was that code added in NextCloud? |
No, since it should be an app on it's own |
Hello NextCloud developers, I had this problem since the old times of ownCloud, and all the time when I need to update my ownCloud instance I need to apply this patch. It have the same behavior in NextCloud.
The problem is described here:
A developer created a patch to solve it. In past I submitted an issue and a pull request with this patch, but a developer talked the best way to fix it is creating an application to provide authentication using a specific method for this case.
Cheers;
The text was updated successfully, but these errors were encountered: