[web2py:38056] Re: How the 'auth.settings.allow_basic_login = True' works like?

2009-12-30 Thread mdipierro
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  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  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  wrote:
>
> > > How the settings 'auth.settings.allow_basic_login = True' is supposed
> > > to work? I tried to login to protected method('@auth.requires_login
> > > ()') via basic auth, but was not succesfull. Is there some additional
> > > setting for protected methods or '@auth.requires_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 web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[web2py] Re: [web2py:38056] Re: How the 'auth.settings.allow_basic_login = True' works like?

2016-07-04 Thread Joel Couelier
Hello Massimo,

Just a quick question, have you got the confirmation if sending user + 
password directly in the URL is working on basic auth mode?

I have added the following on my controller :

if request.function == 'ping':
 auth.settings.allow_basic_login = True

@auth.requires_login()
def ping():
   return dict()

and i am trying to access this page launching the following URL :
http://jcouelier%40gmail.com:@domain:port/URL

But i still obtain the login page 




Le jeudi 31 décembre 2009 03:30:40 UTC+1, mdipierro a écrit :
>
> No but
>
> http://user%40mail.com :password@domain:port/url
>
> may work %40 is the @ escaped. You also have to escape the password.
>
>
> On Dec 30, 2009, at 5:26 PM, Alex Fanjul wrote:
>
> http://u...@mail.com:password@domain:port/url
>
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: [web2py:38056] Re: How the 'auth.settings.allow_basic_login = True' works like?

2016-07-05 Thread Massimo Di Pierro
Your code works for me when using 

curl "http://jcouelier%40gmail.com:@domain:port/URL" 

but now when using the browser. So I think the browser is removing the 
username and password.

On Monday, 4 July 2016 08:30:04 UTC-5, Joel Couelier wrote:
>
> Hello Massimo,
>
> Just a quick question, have you got the confirmation if sending user + 
> password directly in the URL is working on basic auth mode?
>
> I have added the following on my controller :
>
> if request.function == 'ping':
>  auth.settings.allow_basic_login = True
>
> @auth.requires_login()
> def ping():
>return dict()
>
> and i am trying to access this page launching the following URL :
> http://jcouelier%40gmail.com:@domain:port/URL
>
> But i still obtain the login page 
>
>
>
>
> Le jeudi 31 décembre 2009 03:30:40 UTC+1, mdipierro a écrit :
>>
>> No but
>>
>> http://user%40mail.com :password@domain:port/url
>>
>> may work %40 is the @ escaped. You also have to escape the password.
>>
>>
>> On Dec 30, 2009, at 5:26 PM, Alex Fanjul wrote:
>>
>> http://u...@mail.com:password@domain:port/url
>>
>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: [web2py:38056] Re: How the 'auth.settings.allow_basic_login = True' works like?

2016-07-05 Thread Joel Couelier

Thanks Massimo for your update.

Kr,

Joel


On 05/07/2016 15:37, Massimo Di Pierro wrote:

Your code works for me when using

curl "http://jcouelier %40gmail.com 
:@domain:port/URL"


but now when using the browser. So I think the browser is removing the 
username and password.


On Monday, 4 July 2016 08:30:04 UTC-5, Joel Couelier wrote:

Hello Massimo,

Just a quick question, have you got the confirmation if sending
user + password directly in the URL is working on basic auth mode?

I have added the following on my controller :

if request.function == 'ping':
 auth.settings.allow_basic_login = True

@auth.requires_login()
def ping():
   return dict()

and i am trying to access this page launching the following URL :
http://jcouelier%40gmail.com :@domain:port/URL

But i still obtain the login page




Le jeudi 31 décembre 2009 03:30:40 UTC+1, mdipierro a écrit :

No but

http://user%40mail.com
:password@domain:port/url

may work %40 is the @ escaped. You also have to escape the
password.


On Dec 30, 2009, at 5:26 PM, Alex Fanjul wrote:


http://u...@mail.com:password@domain:port/url


--
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 a topic in the 
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/web2py/jrDTIC5Uvo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
web2py+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.