Here's what happens: I have a /save page which @requires not_anonymous.
The user tries to visit /save, they are redirected to /login with extra
parameters stored in the login form. If the user types in a valid l/p,
then the content is correctly saved and everything is good. Except that
there is no identity cookie sent, so there is no lasting record of the
session. Oddly enough, there is a secret_token in my database
corresponding to the user who logged in; however it is not sent.
Note that I have duplicated the relevant fields from somodel.py and
specified the following in my dev.cfg:
identity.on=True
identity.failure_url="/login"
identity.soprovider.model="myproject.model"
identity.soprovider.model.user="User"
identity.soprovider.model.group="Role"
identity.soprovider.model.permission="Permission"
identity.soprovider.model.secret_token="SecretToken"
identity.session.cookie.host="localhost"
This is with SVN 441. Any help is appreciated.
Keir
--
Jeff Watkins
Computers, they're just a fad.
The primary purpose of the cookie host is to specify a broader domain
for the cookie rather than the originating server. So specifying
localhost is not really necessary (that would be the default if you
access http://localhost:8080/).
I suppose I should rename identity.session.cookie.host to
identity.session.cookie.domain to be more clear.
On 4 Jan, 2006, at 3:31 am, Keir Mierle wrote:
--
Jeff Watkins
http://newburyportion.com/
'I know about people who talk about suffering for the common good.
It's never bloody them! When you hear a man shouting "Forward, brave
comrades!" you'll see he's the one behind the bloody big rock and the
one wearing the only really arrow-proof helmet!'
-- Rincewind gives a speech on politics. (Terry Pratchett,
Interesting Times)
Lee
Does it have to be a domain? What happens if you just want to run
your site, internally, on an ip address with no domain associated with
it? Will the ip then be substituted?