AuthTktAuthenticationPolicy: Behaviour of "wild_domain" option unclear.
27 views
Skip to first unread message
Torsten Irländer
unread,
Aug 3, 2017, 4:09:14 AM8/3/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-discuss
Hi,
I'm in doubt how to use the "wild_domain" option in AuthTktAuthenticationPolicy correct or if I found a defect. Before opening a ticket I want to ask here.
I'm using for AuthTktAuthenticationPolicy cookie-based authentification for a site hosted under "my-app.foo.example.com"
As described in the documentation[0] I receive two cookie after authentification on default configuration:
I expect when setting the "wild_domain" option to false only one cookie (the host-only) is set. But the wild_domain option seems to have no effect for me. I always get those two cookies.
I do not use any of the interferring option like "domain" or "parent_domain".
How to use the "wild_domain" option correct to only receive one host-only cookie?
I'm using Pyramid 1.5.2.
Some context:
However using "domain" has some effect as I only get one cookie, but this is the wildcard and *not* the host-only one. Which isn't my expected behaviour but might be another issue.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-...@googlegroups.com
We shouldn’t be sending two cookies anymore since browsers treat both .my-app.foo.example.com and my-app.foo.example.com the same, so we could save some request bandwidth, but that is another ticket for later.
In other words, wild_domain being set to True or False makes no difference anymore.
> If the first character of the attribute-value string is %x2E (".”):
> Let cookie-domain be the attribute-value without the leading %x2E
> (".") character.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pylons-discuss
Thanks for your reply Bert!
Ok, in this case I think I am using the wild_domain option correct but the behaviour is not correct and there seems to be a defect. However I set this option always to cookies are set.
I will file a issue for this.
Torsten
Torsten Irländer
unread,
Aug 7, 2017, 2:56:57 AM8/7/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message