diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-05-30 20:42:58 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-05-30 20:42:58 +0000 |
| commit | 7ec9e7cb2f8aea52cd8645c98d336994357a66f5 (patch) | |
| tree | 3557bef3aeb3302e8f2203fbed0a176f0a966865 /repoze/bfg/interfaces.py | |
| parent | b0c812081d4a5d8b95229a21cfc9f893e99d83e5 (diff) | |
| download | pyramid-7ec9e7cb2f8aea52cd8645c98d336994357a66f5.tar.gz pyramid-7ec9e7cb2f8aea52cd8645c98d336994357a66f5.tar.bz2 pyramid-7ec9e7cb2f8aea52cd8645c98d336994357a66f5.zip | |
- 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.
Diffstat (limited to 'repoze/bfg/interfaces.py')
| -rw-r--r-- | repoze/bfg/interfaces.py | 8 |
1 files changed, 4 insertions, 4 deletions
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. """ |
