rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: danny on April 27, 2018, 09:56:23 PM

Title: build 299, still trying to log in, from a phone
Post 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. 
Title: Re: build 299, still trying to log in, from a phone
Post by: bmartino1 on April 28, 2018, 08:19:14 PM
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:
Title: Re: build 299, still trying to log in, from a phone
Post by: bmartino1 on April 28, 2018, 08:25:48 PM
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
Title: Re: build 299, still trying to log in, from a phone
Post by: bmartino1 on May 10, 2018, 12:27:17 AM
An excellent question, one o don't have an answer to nor way to accomplish ATM.

Rejeto may be of better help here
Title: Re: build 299, still trying to log in, from a phone
Post by: LeoNeeson on May 10, 2018, 12:48:03 PM
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).
Title: Re: build 299, still trying to log in, from a phone
Post by: bmartino1 on May 11, 2018, 11:12:58 PM
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.