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

Use pyramid SecurityPolicy #9955

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

arnaud-morvan
Copy link
Member

No description provided.

from macaroonbakery.bakery._identity import Identity


class SecurityPolicy(ISecurityPolicy):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@arnaud-morvan arnaud-morvan Aug 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for other interfaces, but pretty sure we do not really need inheritance, just a class and methods with such prototype.
Inheritance can help for typing.
I do not know details about zope.Interface.
This is a draft for discussion, we will discuss, write tests and code.
But interesting catch anyway.


from c2cgeoportal_geoportal.resources import defaultgroupsfinder
from jinja2.runtime import identity
from macaroonbakery.bakery._identity import Identity
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDE imports, remove

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.

2 participants