8000 Merge branch 'mmerickel-fix_api_docs' · alex-python/pyramid@015296c · GitHub
[go: up one dir, main page]

Skip to content

Commit 015296c

Browse files
committed
Merge branch 'mmerickel-fix_api_docs'
2 parents 158433b + 83c8ef8 commit 015296c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pyramid/authentication.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ class RepozeWho1AuthenticationPolicy(CallbackAuthenticationPolicy):
6161
6262
``callback``
6363
64-
Default: ``None``. A callback passed the :mod:`repoze.who`
65-
identity and the :term:`request`, expected to return ``None``
66-
if the user represented by the identity doesn't exist or a
67-
sequence of group identifiers (possibly empty) if the user
68-
does exist. If ``callback`` is None, the userid will be
69-
assumed to exist with no groups.
64+
Default: ``None``. A callback passed the :mod:`repoze.who` identity
65+
and the :term:`request`, expected to return ``None`` if the user
66+
represented by the identity doesn't exist or a sequence of principal
67+
identifiers (possibly empty) representing groups if the user does
68+
exist. If ``callback`` is None, the userid will be assumed to exist
69+
with no group principals.
7070
7171
Objects of this class implement the interface described by
7272
:class:`pyramid.interfaces.IAuthenticationPolicy`.
@@ -149,10 +149,10 @@ class RemoteUserAuthenticationPolicy(CallbackAuthenticationPolicy):
149149
``callback``
150150
151151
Default: ``None``. A callback passed the userid and the request,
152-
expected to return None if the userid doesn't exist or a sequence
153-
of group identifiers (possibly empty) if the user does exist.
154-
If ``callback`` is None, the userid will be assumed to exist with no
155-
groups.
152+
expected to return None if the userid doesn't exist or a sequence of
153+
principal identifiers (possibly empty) representing groups if the
154+
user does exist. If ``callback`` is None, the userid will be assumed
155+
to exist with no group principals.
156156
157157
Objects of this class implement the interface described by
158158
:class:`pyramid.interfaces.IAuthenticationPolicy`.
@@ -187,9 +187,9 @@ class AuthTktAuthenticationPolicy(CallbackAuthenticationPolicy):
187187
188188
Default: ``None``. A callback passed the userid and the
189189
request, expected to return ``None`` if the userid doesn't
190-
exist or a sequence of group identifiers (possibly empty) if
190+
exist or a sequence of principal identifiers (possibly empty) if
191191
the user does exist. If ``callback`` is ``None``, the userid
192-
will be assumed to exist with no groups. Optional.
192+
will be assumed to exist with no principals. Optional.
193193
194194
``cookie_name``
195195

0 commit comments

Comments
 (0)
0