-
Notifications
You must be signed in to change notification settings - Fork 887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework security policy #3544
Rework security policy #3544
Conversation
@@ -2086,7 +2086,10 @@ def __init__(self, permitted=True): | |||
def identify(self, request): | |||
return 123 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should change this for an instance of a named tuple or tiny class.
@@ -2086,7 +2086,10 @@ def __init__(self, permitted=True): | |||
def identify(self, request): | |||
return 123 | |||
|
|||
def permits(self, request, context, identity, permission): | |||
def authenticated_userid(self, request): | |||
return 123 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See discussion about userid being required to be a string
:func:`pyramid.security.principals_allowed_by_permission`. | ||
|
||
.. versionadded:: 1.4 | ||
The ``remember_result`` argument. | ||
|
||
.. versionadded:: 1.4 | ||
The ``forget_result`` argument. | ||
|
||
.. versionchanged:: 2.0 | ||
Removed ``groupids`` argument and doc about effective principals. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review other changed methods to see if we need more versionchanged notes (for example the top-level functions in pyramid.security below)
Replaced by #3545 |
Addresses #3520 for #3422
Follow-up to PR #3465
__str__
requirement for identity #3520 (comment))