-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Stuck in authentication loop #5
Comments
Hi, sorry for late reply (been afk for a while). Anyhow, using subdirectory shouldn't matter – I'm more leaning into that it's an Apache/Server-issue. Let's do some testing;
Basic auth should work out of the box with NGINX, haven't worked much with it with Apache. As you say, it may very well be related to your .htaccess. If you don't get the parameters in "2" above, try checking out this thread that seems related: http://laravel.io/forum/05-10-2014-http-basic-auth-always-fails-on-ipage |
No worries :) Thanks for supporting even if it's not the packages fault.
I'm on a plane at the moment (free WiFi at Norwegian Air :)) so it's kind of a pain to test with satellite Internet but I'll try the tip from the laravel.io forum and get back to you. Seems like a pretty big hack though. I also did some further digging and found out it might be due to the fact that I run PHP 5.6 via fastcgi. Since it's on a managed server, I don't have much influence on these things. I guess worst case is that I just have configure all of the authentication in a .htaccess with .htpasswd -.- |
Regarding Also, just to make sure, surely you've run |
Yes, I do get an array, with
I've never seen it before like this. I'm googeling it now..
As far as I understood update:
This part would have to be in the
https://groups.google.com/forum/#!msg/habari-users/H-tx4BwUmXU/UU6785nGcZoJ fyi, .htaccess has this:
|
So you can do this: list($user, $password) = explode(':', base64_decode(substr($_SERVER["REDIRECT_REDIRECT_HTTP_AUTHORIZATION"], 6))); if you have this in your .htaccess:
(notice it said Anyway, the extration of the username and password works like that, although it feels quite hacky.
Printing the (I also use
Forgot to use |
Cool! I'm looking into building a solution directly into the package. Might I ask what hosting solution you are using? |
It's a managed server at https://all-inkl.com/server/server_l/ (would not have been my first choice but I didn't have a say in this ;)) PHP 5.3.28 (standard, Apache 2.0 Handler) So my public/index.php is a index.php56 because laravel doesn't run under 5.3.28. |
Great, I'll look into it. Opened a new issue here; #6 – would be cool if there is a fix directly in the package for the folks that are stuck in a shared non-configurable environment. Might get back to you when an update is ready and some testing is needed =) |
Cool, thanks a lot. I think basically you would have to use that .htacces line and then go through the request and see at which point (how many For now, I also put this in the config file, as well as an entry for |
Hi,
every time I open the my test page I get the prompt to enter details, enter them and get another prompt. This is due to the fact, that
$request->getUser()
and$request->getPassword()
are always empty. In postman and curl I simply get the error message.I installed laravel in a subfolder, could it be some redirect issue? Maybe I have to enter something in .htaccess?
thanks
The text was updated successfully, but these errors were encountered: