What if you create a small REST service for login? in the case of login it can be a get request which sends the username and password (PREVIOUSLY HASHED) check if it exist in web2py database and return 1 if exists, 0 if it doesnt exist.
You can connect to the rest service through HTTP request, you can read more about web2py services here: http://web2py.com/books/default/chapter/29/10/services#Restful-Web-Services El viernes, 2 de octubre de 2015, 16:36:25 (UTC-4:30), Fábio Filho escribió: > > I'm sorry by my english.... > > How can i connect my android application in my web2py site using auth > authentication (@auth.requires_login)? > > I need make a secure connection between them > > for example: > > > Web2Py Side : > > @auth.requires_login() > def get_examplet(): > return "{'code':'0'}" > > > > > Android Java side: > > new Thread(){ > > @Override > public void run(){ > > Http.request("localhost:8080/mysite/controller/get_example") ; > // <---- i got a refused connection because that python line code > ("@auth.requires_login()"), > > // so of course that is expected > because i need to be logged in to make this request > > // when a remove that python line code > above ("@auth.requires_login()"), i take it perfectly .... > > } > > }.start(); > > > > How can i do this above? > > > -- 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.

