rejetto forum
Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: danny on April 27, 2018, 09:56:23 PM
-
Edit: Many of the phone/mobile browsers don't have basic-auth. But, Firefox mobile is compatible and Some chrome versions can do it. So, the eventual solution was to simply download a compatible browser.
It seems recommendable to put a note like that into the [unauthorized] section of an hfs template. So, instead of no explanation, the user could have a note on what to do to achieve login.
-
android devices on smart phone will pull up authentication windows (via default html code) from the default hfs html code...
Except on a protected resource, when visiting any page, you auto user aynomous
so first on a folder for your phone users,
you will have to set an account for login access on hfs
you may need to enable an option that when loging in throws the users name and passwords into the url for browsing
see pictures:
-
if you require a true login page, you may need ftp acess, in with i would refer you to fhfs:
http://rejetto.com/forum/index.php?topic=10920.msg1060565#msg1060565
then you login page would be http://xxx.xxx.xxx.xxxip/~login
other wise tablets would get a simalar login message:
see picture
-
An excellent question, one o don't have an answer to nor way to accomplish ATM.
Rejeto may be of better help here
-
HFS uses a Basic HTTP authentication (https://en.wikipedia.org/wiki/Basic_access_authentication). This Google Search (https://www.google.com/search?q=%22HTTP+Basic+Auth%22+%22Form%22+%22JavaScript%22&sa=N) could lead in some solution, but I currently don't have the time to read every solution given (keep in touch if you find a working solution).
-
I would add a vitural folder that is password protected
Then add a real folder
Then try your code above.
Will probably be a week when I'm at a PC to try and test things again.