On Tue, Nov 18, 2008 at 11:07 AM, Gustavo Narea <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Authentication seems to work as expected. It seems like you're entering the
> wrong password because it finds the user in the database and then it tries to
> authenticate him, but it fails.
>
yes I almost though I screwed up by providing a bad password but check this out.
I saw this line
2008-11-18 11:18:03,889 no userid returned from
<tgext.authorization.quickstart.SQLAuthenticatorPlugin object at
0x92c5e8c>: (None)
this is the chunk of my createdb.py
tony = model.User()
tony.user_name = 'tony'
tony.password = 'tony'
tony.display_name = 'Anthony'
tony.email_address = '[EMAIL PROTECTED]'
print "Encryption method" , tony.get_encryption_method()
print "Validate_password =" ,tony.validate_password('tony')
when it runs you can see.
Encryption method None
Validate_password = True
I tried adding a statement to be shown in WHO_LOG hook, but I couldn't
I tried import sys; sys.stdout.write, plain print and even logging but
I didn't saw any so I wasn't sure, how can I "log to who_log??
now looking at the code in
lib/python2.5/site-packages/tgext.authorization-0.9a1dev_r117-py2.5.egg/tgext/authorization/quickstart.py
it seems that the above call user.validate_password('tony') should work
side note: there should also be a warning for no encryption, in fact I
refuse it to be the default
> If that's not the problem, then I'd suggest you try Repoze's mailing list or
> their IRC channel. This is specific to repoze.who and I'm sure Chris would
> spot the problem. Don't forget to link to the output of paster.
>j
> Cheers!
>
> On Tuesday November 18, 2008 17:31:44 Jorge Vargas wrote:
>> On Tue, Nov 18, 2008 at 10:25 AM, Jorge Vargas <[EMAIL PROTECTED]>
> wrote:
>> > On Tue, Nov 18, 2008 at 10:00 AM, Gustavo Narea <[EMAIL PROTECTED]>
> wrote:
>> >> On Tuesday November 18, 2008 16:51:21 Jorge Vargas wrote:
>> >>> I just ran this and I'm getting 'not autenticated' I checked the SA
>> >>> logs and it is returning the correct Row so it seems to be working
>> >>> fine on the backend.
>> >>
>> >> Hmmm... can you please run the application with the following command:
>> >> WHO_LOG=1 paster serve --reload development.ini
>> >> and then paste the output of `paster` when you visit
>> >> http://127.0.0.1:8080/ ?
>> >
>> > awesome undocumented flag
>> >
>> > http://paste.chrisarndt.de/paste/86f10f5c74414c26a37a54f760f0a5cb
>> >
>> > here is the output
>>
>> this part of the log seems more useful
>> http://paste.turbogears.org/paste/12746
>>
>> >> Cheers.
>> >> --
>> >> Gustavo Narea <http://gustavonarea.net/>.
>> >>
>> >> Get rid of unethical constraints! Get freedomware:
>> >> http://www.getgnulinux.org/
>>
>>
> --
> Gustavo Narea <http://gustavonarea.net/>.
>
> Get rid of unethical constraints! Get freedomware:
> http://www.getgnulinux.org/
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---