diff options
| author | Theron Luhn <theron@luhn.com> | 2019-12-15 20:27:10 -0800 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2019-12-15 20:27:10 -0800 |
| commit | 5f6f7184a997cb2dfa341eef53259d4254a242e8 (patch) | |
| tree | 3b9b015c4c06f2f621ca20d7edf15afe896dc1bb /src | |
| parent | d79e1dfa0f0f52dbce8ec4a9b08c6ef7740f6dea (diff) | |
| download | pyramid-5f6f7184a997cb2dfa341eef53259d4254a242e8.tar.gz pyramid-5f6f7184a997cb2dfa341eef53259d4254a242e8.tar.bz2 pyramid-5f6f7184a997cb2dfa341eef53259d4254a242e8.zip | |
Remove requirement that identity is validated.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/interfaces.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/pyramid/interfaces.py b/src/pyramid/interfaces.py index 891b851ee..c0ff317a4 100644 --- a/src/pyramid/interfaces.py +++ b/src/pyramid/interfaces.py @@ -483,17 +483,16 @@ class IViewMapperFactory(Interface): class ISecurityPolicy(Interface): - def identify(request): - """ Return an object identifying a trusted and verified user for the - current request. The object can be of any shape, such as a simple ID - string or an ORM object. - """ - def authenticated_userid(request, identity): """ Return a :term:`userid` string identifying the trusted and verified user, or ``None`` if unauthenticated. """ + def identify(request): + """ Return the :term:`identity` of the current user. The object can be + of any shape, such as a simple ID string or an ORM object. + """ + def permits(request, context, permission): """ Return an instance of :class:`pyramid.security.Allowed` if a user of the given identity is allowed the ``permission`` in the current |
