I've tried this but i cant get this to work. in db.py i have
auth.settings.allow_basic_login = True And in the controller: @auth.requires_login() When i use: http://<username>:<password>@127.0.0.1:8000/<app>/<controller>/<function> I get redirected to the login page. My app uses email as username but i also tried to use the default username. Still no luck. I think i miss something. Op woensdag 12 september 2012 14:45:23 UTC+2 schreef Massimo Di Pierro het volgende: > > Nope. > > auth.settings.allow_basic_login = True > > https://username:[email protected]/yourapp/default/index > > http://en.wikipedia.org/wiki/Basic_access_authentication > > > > On Wednesday, 12 September 2012 07:09:23 UTC-5, villas wrote: >> >> Security is clearly not at the top of your agenda :) >> Something like this might work: >> >> def logmein(): >> # minimal, insecure login function >> auth.login_bare(request.vars['username'],request.vars['password']) >> >> yoursite.com/yourapp/default/logmein?username=abc&password=xyz >> >> >> >> >> On Wednesday, September 12, 2012 12:40:13 PM UTC+1, Remco K wrote: >>> >>> Hello everyone, >>> >>> I'm not a big fan of asking questions rather than find solutions by >>> myself but i need a little help on this one so i hope someone can help me a >>> bit. >>> >>> What i need is 'very simple'. I have a Web2Py application running and i >>> need other applications (PHP or something) to be able to successfully login >>> users to this app by providing the username and password via the URL. >>> >>> When doing this in PHP i would think of something like: >>> >>> /index.php?username=blabla&password=dfgfdjkldfgjk >>> >>> I've already looked at basic auth but i can't get the user to login. >>> >>> All of my controllers/functions use >>> @auth.requires_login() >>> to check whether the user has the permission to execute the functions. >>> >>> I hope someone can help me out on this. >>> >>> Thanks in advance! >>> Remco >>> >>> --

