It's still not clear what is generating the message you see. Can you show 
the URL you are attempting to visit and exactly what you see on the page?

Note, requiring login via @auth.requires_login() or @auth.requires() does 
not require HTTPS or a "secure channel", so merely requiring login for 
particular actions would not result in the message you are seeing.

If you have request.requires_https() somewhere, you'll need to make it 
conditional on the environment -- for example:

if os.getenv('SERVER_SOFTWARE', '').startswith('Google App Engine/'):
    request.requires_https() # Only when running on GAE.

If that's the issue, though, it has nothing to do with requiring login.

Anthony

On Wednesday, June 14, 2017 at 7:30:53 PM UTC-4, [email protected] wrote:
>
> Thank you for your response!
>
> I am afraid that my question lacked precision! Here is my regular command 
> line to start web2py:
> ~/src/w2app$ ./web2py.py --password='11111' -c ../ssl-key-crt/server.crt 
> -k ../ssl-key-crt/server.key --ip=192.168.1.25
> It works very nice!
>
> Here is my command required by dev_appserver before you deploy to gae:
> ~/src$ dev_appserver.py --host=192.168.1.25 w2app/
>
> My application requires that the user is logged in before any 
> functionality is availabe. I am not talking admin app nor appadmin app. So 
> when it is running in dev_appserver and I try to login I get a message 
> something like: can't login because insecure channel. And I can't use any 
> of its functionality. This is because I am not at the local host and this 
> behavior is understood. The problem is that my linux box, where I run 
> web2py server,  is 'headless', no windowing software, and I develop  my 
> apps via ssh and a browser from a client, in this case a chromebook, and I 
> can never be or appear to the system as being at the local host in this 
> fashion.
> Is there a linux configuration that would make me appear to the 
> dev_appserver as being at the local host even though I am accessing it form 
> LAN client?
> Thank you in advance.
>
>    - 
>    
> On Wednesday, June 14, 2017 at 6:04:45 PM UTC-4, Anthony wrote:
>>
>> On Tuesday, June 13, 2017 at 1:12:44 PM UTC-4, [email protected] wrote:
>>>
>>> I run my web2py on a home lan, headless box of linux. My web2py apps 
>>> require login and it can only be performed over a secure channel. My 
>>> question: is it possible (if yes then how) to configure my linux box to 
>>> simulate local host accessing so that I can remain sitting on my couch? 
>>> Should I remove all the decorators requiring user signature in my web2py 
>>> app and the run through the dev_appserver?
>>>
>>
>> The Auth decorators do not require an HTTPS connection. Are you talking 
>> about trying to access either the admin app or the appadmin page of your 
>> app -- those are the only things that require HTTPS (or alternatively a 
>> local connection).
>>
>> Anthony
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to