Hi there, I am looking for a clean way of implementing two or more different authentication policies inside a pyramid application, and select the policy a per view basis, maybe with an overload of the view_config decorator.
>From the little I understand, there is only one authentication policy in the "registry", so it looks like the best way to go would be to : - create an authentication policy "implementing" the IAuthenticationPolicy interface - "mark" view functions - find the way from the request passed to the authentication policy methods to the corresponding view - inside the authentication policy, call authentication methods based on the view "mark" - set the new authentication policy as usual with config.set_authentication_policy Do you think this is possible ? Is there a better way ? Regards, David. -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.