Hello,
can it be that somehow auth is broken when using python 3.4?
To reproduce just install the plain quickstart with auth and sqlalchemy (I used
quickstart -a -s -g). Run gearbox setup-app, start the server and try to log in
with either
manager:managepass or editor:editpass
I get a "wrong credentials" on both logins. Same is true for logins to my
production app which I just moved from python 2.7 to python 3.4. (that's why I
set up a quickstart to begin with - trying to figure out if it's my app or a
built-in problem)
Here's the console log (auth logger set to INFO) of the sample app:
17:39:36,931 INFO [auth] request classification: browser
17:39:36,931 INFO [auth] request classification: browser
17:39:36,932 INFO [auth] -- repoze.who request started (/login_handler) --
17:39:36,932 INFO [auth] -- repoze.who request started (/login_handler) --
17:39:36,940 INFO [auth] static downstream application replaced with The
resource was found at
17:39:36,940 INFO [auth] static downstream application replaced with The
resource was found at
17:39:36,941 INFO [auth] no challenge required
17:39:36,941 INFO [auth] no challenge required
17:39:36,941 INFO [auth] remembering via headers from
<FastFormPlugin:/login_handler 140535571854896>: [('Set-Cookie',
'authtkt="8a5971ab9a30756c21580391e4cae550588018d8manager!"; Path=/'),
('Set-Cookie', 'authtkt="8a5971ab9a30756c21580391e4cae550588018d8manager!";
Path=/; Domain=server.bunspace.com'), ('Set-Cookie',
'authtkt="8a5971ab9a30756c21580391e4cae550588018d8manager!"; Path=/;
Domain=.server.bunspace.com')]
17:39:36,941 INFO [auth] remembering via headers from
<FastFormPlugin:/login_handler 140535571854896>: [('Set-Cookie',
'authtkt="8a5971ab9a30756c21580391e4cae550588018d8manager!"; Path=/'),
('Set-Cookie', 'authtkt="8a5971ab9a30756c21580391e4cae550588018d8manager!";
Path=/; Domain=server.bunspace.com'), ('Set-Cookie',
'authtkt="8a5971ab9a30756c21580391e4cae550588018d8manager!"; Path=/;
Domain=.server.bunspace.com')]
17:39:36,941 INFO [auth] -- repoze.who request ended (/login_handler) --
17:39:36,941 INFO [auth] -- repoze.who request ended (/login_handler) --
192.168.1.4 - - [18/Jan/2017 17:39:36] "POST
/login_handler?__logins=2&came_from=%2Feditor_user_only HTTP/1.1" 302 357
Any ideas anyone?
I'm going to try to dig through the source, but someone with more intimate
knowledge might be able to give me pointers.
Thanks!
Uwe
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.