On Thursday, May 17, 2012 9:13:17 AM UTC-4, Jason wrote: > > > > On Wednesday, May 16, 2012 4:25:19 PM UTC-4, Jason wrote: >> >> >> >> On Wednesday, May 16, 2012 3:36:15 PM UTC-4, Iain Duncan wrote: >>> >>> Thanks Jason. If you don't mind sharing how you did it, that would be >>> great. >>> >> thanks! >>> Iain >>> >>> >> Ugh Google Groups Post button is too close to the bottom of the text box.
Here is a gist of the authentication module needed to get the correct wildcard domain support: https://gist.github.com/885d5b21295bc4fb192d In your project __init__.py you use it the same way you would use Pyramid's authentication policy, but with one extra argument: import myproject.lib.AuthTktAuthPolicy authn_policy = AuthTktAuthPolicy( callback=principal_finder, secret=settings['auth.secret'], cookie_name=settings['auth.key'], sibling_domains=True) config = Configurator(settings=settings, authentication_policy=authn_policy) Maybe one day I will make this a proper plugin, but this will get you going for now. --Jason -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/KRr3Qp5MK_wJ. 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/pylons-discuss?hl=en.
