Hello,

According to http://bugs.repoze.org/issue89 it is probably because of the 
triple Set-Cookie headers.

I ported my app to TG 2.2, and repoze.who 2.x.  I still see that the server 
sends 3 Set-Cookie headers in the login response, and can login using 
Firefox, but Opera logins fail.

Are you seeing the same problem with repoze.who 2.x?


REQUEST:
POST /login_handler?__logins=0&came_from=%2F HTTP/1.1

RESPONSE:
HTTP/1.0 302 Found
Server: PasteWSGIServer/0.5 Python/2.7
Date: Thu, 11 Oct 2012 06:03:23 GMT
Location: http://192.168.1.2/post_login?__logins=0&came_from=%2F
Content-Length: 299
Content-Type: text/html; charset=UTF-8

Set-Cookie: authtkt="xxxxx!userid_type:unicode"; Path=/
Set-Cookie: authtkt="xxxxx!userid_type:unicode"; Path=/; Domain=192.168.1.2
Set-Cookie: authtkt="xxxxx!userid_type:unicode"; Path=/; Domain=.192.168.1.2

<html>
 <head>
  <title>302 Found</title>
 </head>
 <body>
  <h1>302 Found</h1>
  The resource was found at <a 
href="http://192.168.1.2/post_login?__logins=0&amp;came_from=%2F";>http://192.168.1.2/post_login?__logins=0&amp;came_from=%2F</a>;
you should be redirected automatically.

 </body>
</html>



On Sunday, June 3, 2012 5:42:10 AM UTC-7, Moritz Schlarb wrote:
>
> This should be because TG2 only works with repoze.who-1.x which has this 
> bug in opera: http://bugs.repoze.org/issue89
> It doesn't seem to have been fixed up until repoze.who-2.x!
>
> Am Mittwoch, 23. Mai 2012 11:25:54 UTC+2 schrieb Juan Antonio Ibáñez:
>>
>> Hello,
>>
>>    I am having one problem usin authentiacation in my proyect. It works 
>> ok on Firefox and Chrome but not on Opera. When I try to log in using Opera 
>> browser, authentication always fails but I dont know why. Form data is sent 
>> ok as I can see.
>>
>> Any idea?
>>
>> Regards
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/turbogears/-/PcdwwJ7lfd4J.
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?hl=en.

Reply via email to