Commit 696d5969 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

ERP5Site: Use JWT for Extraction and Authentication

parent 8e92345f
...@@ -2147,18 +2147,17 @@ class ERP5Generator(PortalGenerator): ...@@ -2147,18 +2147,17 @@ class ERP5Generator(PortalGenerator):
erp5security_dispatcher.addERP5GroupManager('erp5_groups') erp5security_dispatcher.addERP5GroupManager('erp5_groups')
erp5security_dispatcher.addERP5RoleManager('erp5_roles') erp5security_dispatcher.addERP5RoleManager('erp5_roles')
erp5security_dispatcher.addERP5UserFactory('erp5_user_factory') erp5security_dispatcher.addERP5UserFactory('erp5_user_factory')
erp5security_dispatcher.addERP5DumbHTTPExtractionPlugin( erp5security_dispatcher.addERP5JSONWebTokenPlugin('erp5_jwt_extraction')
'erp5_dumb_http_extraction')
# Register ERP5UserManager Interface # Register ERP5UserManager Interface
p.acl_users.erp5_users.manage_activateInterfaces( p.acl_users.erp5_users.manage_activateInterfaces(
('IAuthenticationPlugin', ('IUserEnumerationPlugin',))
'IUserEnumerationPlugin',))
p.acl_users.erp5_groups.manage_activateInterfaces(('IGroupsPlugin',)) p.acl_users.erp5_groups.manage_activateInterfaces(('IGroupsPlugin',))
p.acl_users.erp5_roles.manage_activateInterfaces(('IRolesPlugin',)) p.acl_users.erp5_roles.manage_activateInterfaces(('IRolesPlugin',))
p.acl_users.erp5_user_factory.manage_activateInterfaces( p.acl_users.erp5_user_factory.manage_activateInterfaces(
('IUserFactoryPlugin',)) ('IUserFactoryPlugin',))
p.acl_users.erp5_dumb_http_extraction.manage_activateInterfaces( p.acl_users.erp5_jwt_extraction.manage_activateInterfaces(
('IExtractionPlugin',)) ('IExtractionPlugin',
'IAuthenticationPlugin'))
def setupPermissions(self, p): def setupPermissions(self, p):
permission_dict = { permission_dict = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment