Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

merwok
Copy link
Contributor

@merwok merwok commented Dec 14, 2019

Addresses #3520 for #3422
Follow-up to PR #3465

@@ -2086,7 +2086,10 @@ def __init__(self, permitted=True):
def identify(self, request):
return 123
Copy link
Contributor Author

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
Copy link
Contributor Author

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.
Copy link
Contributor Author

@merwok merwok Dec 14, 2019

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)

@merwok
Copy link
Contributor Author

merwok commented Dec 15, 2019

Replaced by #3545

@merwok merwok closed this Dec 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant