From 7ec9e7cb2f8aea52cd8645c98d336994357a66f5 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 30 May 2009 20:42:58 +0000 Subject: - Remove "context" argument from ``effective_principals`` and ``authenticated_userid`` function APIs in ``repoze.bfg.security``, effectively a doing reversion to 0.8 and before behavior. Both functions now again accept only the ``request`` parameter. --- repoze/bfg/interfaces.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 282e3756a..bc91c6b0e 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -213,23 +213,23 @@ class IRoutesContextFactory(Interface): class IAuthenticationPolicy(Interface): """ An object representing a BFG authentication policy. """ - def authenticated_userid(context, request): + def authenticated_userid(request): """ Return the authenticated userid or ``None`` if no authenticated userid can be found. """ - def effective_principals(context, request): + def effective_principals(request): """ Return a sequence representing the effective principals including the userid and any groups belonged to by the current user, including 'system' groups such as Everyone and Authenticated. """ - def remember(context, request, principal, **kw): + def remember(request, principal, **kw): """ Return a set of headers suitable for 'remembering' the principal named ``principal`` when set in a response. An individual authentication policy and its consumers can decide on the composition and meaning of **kw. """ - def forget(context, request): + def forget(request): """ Return a set of headers suitable for 'forgetting' the current user on subsequent requests. """ -- cgit v1.2.3