So I guess that is the problem, traying to access url through standard way but with email username because it would remain: http://[email protected]:passw...@domain:port/uri , and I think this won't be valid... alex f
El 30/12/2009 18:06, Massimo Di Pierro escribió: > It depends. Unless you have custom auth_user table with a username > field, your username is the email and that is what you should use in > basic auth. > > On Dec 30, 2009, at 10:12 AM, Alex Fanjul wrote: > >> Massimo I think the username is not an email, is just the standard way >> of accessing url with basic auth, isn't it? >> http:// username : password @ domain : port / uri >> >> alex >> >> El 30/12/2009 15:25, mdipierro escribió: >>> That probably will not work since it is not what was designed for. >>> I am not sure why it did not work thou. >>> If the username is the email, did you escape it? >>> >>> On Dec 30, 1:16 am, David Marko<[email protected]> wrote: >>> >>>> I simply tried to call the method with URLcontaining the username/ >>>> password. e.g. tttp://username:p...@localhost:8080/.... . Its just >>>> internal call so its fine that username/pwd is in URL. I simply tried >>>> this in browser, but login form apeared instead. >>>> >>>> David >>>> >>>> On Dec 29, 10:25 pm, mdipierro<[email protected]> wrote: >>>> >>>> >>>>> The allow basic login allows you to call functions that >>>>> @auth.requires_login() by passing the credential using basic auth for >>>>> example call the url using wget and curl. >>>>> >>>> >>>>> How are you using it? >>>>> >>>> >>>>> On Dec 29, 2:59 pm, David Marko<[email protected]> wrote: >>>>> >>>> >>>>>> How the settings 'auth.settings.allow_basic_login = True' is >>>>>> supposed >>>>>> to work? I tried to login to protected >>>>>> method('[email protected]_login >>>>>> ()') via basic auth, but was not succesfull. Is there some >>>>>> additional >>>>>> setting for protected methods or '[email protected]_login()'' is >>>>>> simply >>>>>> used for both auth ? Can someone explain please? >>>>>> >>>> >>>>>> David >>>>>> >>>> >>>> >>> -- >>> >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/web2py?hl=en. >>> >>> >>> >>> >> >> -- >> Alejandro Fanjul Fdez. >> [email protected] >> www.mhproject.org > > -- Alejandro Fanjul Fdez. [email protected] www.mhproject.org -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

