Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amer
erp5
Commits
5ae11aeb
Commit
5ae11aeb
authored
Oct 27, 2016
by
Kazuhiko Shiozaki
Committed by
Vincent Pelletier
Dec 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Site: register ERP5 Login authentication plugin on creation.
parent
5ec2a55d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
bt5/erp5_egov/ExtensionTemplateItem/portal_components/extension.erp5.SetUpEGovInstance.py
...tem/portal_components/extension.erp5.SetUpEGovInstance.py
+4
-0
bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_removeAuthenticationPlugin.py
...ive_decouple_instance/Alarm_removeAuthenticationPlugin.py
+2
-2
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+2
-2
product/ERP5Wizard/tests/testERP5RemoteUserManager.py
product/ERP5Wizard/tests/testERP5RemoteUserManager.py
+2
-3
No files found.
bt5/erp5_egov/ExtensionTemplateItem/portal_components/extension.erp5.SetUpEGovInstance.py
View file @
5ae11aeb
...
...
@@ -129,9 +129,13 @@ def setUpEGovSecurityManager(self):
interface
=
plugins
.
_getInterfaceFromName
(
'IAuthenticationPlugin'
)
if
'erp5_users'
in
list
(
plugins
.
_getPlugins
(
interface
)):
plugins
.
deactivatePlugin
(
interface
,
'erp5_users'
)
if
'erp5_login_users'
in
list
(
plugins
.
_getPlugins
(
interface
)):
plugins
.
deactivatePlugin
(
interface
,
'erp5_login_users'
)
interface
=
plugins
.
_getInterfaceFromName
(
'IUserEnumerationPlugin'
)
if
'erp5_users'
in
list
(
plugins
.
_getPlugins
(
interface
)):
plugins
.
deactivatePlugin
(
interface
,
'erp5_users'
)
if
'erp5_login_users'
in
list
(
plugins
.
_getPlugins
(
interface
)):
plugins
.
deactivatePlugin
(
interface
,
'erp5_login_users'
)
# set properties to enable the login on Person and Organisation
# and subcription forms (citizen, company, agent)
...
...
bt5/tiolive_decouple_instance/SkinTemplateItem/portal_skins/tiolive_decouple_instance/Alarm_removeAuthenticationPlugin.py
View file @
5ae11aeb
...
...
@@ -5,7 +5,7 @@ plugin_id = "nexedi_authentication"
user_folder
=
context
.
getPortalObject
().
acl_users
user_folder
.
manage_delObjects
(
'nexedi_authentication'
)
erp5_
users_plugin
=
getattr
(
user_folder
,
"erp5
_users"
)
erp5_users_plugin
.
manage_activateInterfaces
(
interfaces
=
[
'IAuthenticationPlugin'
,
'IUserEnumerationPlugin'
])
erp5_
login_users_plugin
=
getattr
(
user_folder
,
"erp5_login
_users"
)
erp5_
login_
users_plugin
.
manage_activateInterfaces
(
interfaces
=
[
'IAuthenticationPlugin'
,
'IUserEnumerationPlugin'
])
return
True
product/ERP5/ERP5Site.py
View file @
5ae11aeb
...
...
@@ -2151,14 +2151,14 @@ class ERP5Generator(PortalGenerator):
'IRoleAssignerPlugin'
))
# Add ERP5UserManager
erp5security_dispatcher
=
p
.
acl_users
.
manage_addProduct
[
'ERP5Security'
]
erp5security_dispatcher
.
addERP5
UserManager
(
'erp5
_users'
)
erp5security_dispatcher
.
addERP5
LoginUserManager
(
'erp5_login
_users'
)
erp5security_dispatcher
.
addERP5GroupManager
(
'erp5_groups'
)
erp5security_dispatcher
.
addERP5RoleManager
(
'erp5_roles'
)
erp5security_dispatcher
.
addERP5UserFactory
(
'erp5_user_factory'
)
erp5security_dispatcher
.
addERP5DumbHTTPExtractionPlugin
(
'erp5_dumb_http_extraction'
)
# Register ERP5UserManager Interface
p
.
acl_users
.
erp5_users
.
manage_activateInterfaces
(
p
.
acl_users
.
erp5_
login_
users
.
manage_activateInterfaces
(
(
'IAuthenticationPlugin'
,
'IUserEnumerationPlugin'
,))
p
.
acl_users
.
erp5_groups
.
manage_activateInterfaces
((
'IGroupsPlugin'
,))
...
...
product/ERP5Wizard/tests/testERP5RemoteUserManager.py
View file @
5ae11aeb
...
...
@@ -107,9 +107,8 @@ class TestERP5RemoteUserManager(ERP5TypeTestCase):
acl_users
=
self
.
portal
.
acl_users
addERP5RemoteUserManager
(
acl_users
,
self
.
erp5_remote_manager_id
)
self
.
erp5_remote_manager
=
getattr
(
acl_users
,
self
.
erp5_remote_manager_id
)
erp5_users
=
getattr
(
acl_users
,
'erp5_users'
)
erp5_users
.
manage_activateInterfaces
([
'IUserEnumerationPlugin'
])
self
.
erp5_remote_manager
.
manage_activateInterfaces
([
'IAuthenticationPlugin'
])
acl_users
.
erp5_login_users
.
manage_activateInterfaces
([])
self
.
erp5_remote_manager
.
manage_activateInterfaces
([
'IAuthenticationPlugin'
,
'IUserEnumerationPlugin'
])
self
.
commit
()
def
afterSetUp
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment