Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
cookie_secret breaks authentication?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kai H.  
View profile  
 More options Oct 14 2012, 1:29 pm
From: "Kai H." <kai.hildebra...@gmail.com>
Date: Sun, 14 Oct 2012 10:29:49 -0700 (PDT)
Local: Sun, Oct 14 2012 1:29 pm
Subject: cookie_secret breaks authentication?

Hello,

i have a project with standard-tg authentication running with TG 2.2.

Accidentally i just found these lines in my app_cfg.py

# YOU MUST CHANGE THIS VALUE IN PRODUCTION TO SECURE YOUR APP

> base_config.sa_auth.cookie_secret = "ChangeME"

So i changed that string to something else. The curious thing is, that
afterwards i could not login with some of the existing users, but could
login with some others. Some efforts like deleting cookies or changing
passwords did not work. So i changed it again to "ChangeME" and now its
fine - well, actually not cause i want a secure app ;)

What does this cookie secret actually do? How can i change the secret
without breaking the authentication? Are there any restrictions for the
secret-string?

Thanks in advance.

Kai


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kai H.  
View profile  
 More options Oct 14 2012, 2:32 pm
From: "Kai H." <kai.hildebra...@gmail.com>
Date: Sun, 14 Oct 2012 11:32:46 -0700 (PDT)
Local: Sun, Oct 14 2012 2:32 pm
Subject: Re: cookie_secret breaks authentication?

Oh, one thing to be more specific.

The curious thing is, that afterwards i could not login with some of the

> existing users, but could login with some others.

That means that it says "Wrong credentials" for some users (for the correct
credentials), but not for all of them. I know that sounds weird, but thats
why i'm asking ;)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Pedersen  
View profile  
 More options Oct 15 2012, 10:30 pm
From: Michael Pedersen <m.peder...@icelus.org>
Date: Mon, 15 Oct 2012 22:30:14 -0400
Local: Mon, Oct 15 2012 10:30 pm
Subject: Re: [TurboGears] Re: cookie_secret breaks authentication?
The cookie_secret is used in the generation of the HMAC in the
authentication ticket that gets sent down in the cookie. In other
words, simply logging in again should fix it. You shouldn't even have
to reset the password, since it doesn't get used anywhere except in
that.

Can you see any pattern in the failures? Are there any common
characters? I know that, at one point, usernames could not contain
spaces. Are there any other special characters you can see? How about
in the passwords?

My bet is that we have an interaction we don't even know about between
the usernames and cookie secret. If you can find a pattern, we can fix
it.

--
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: m.peder...@icelus.org -- Twitter: pedersentg

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »