Commit e7e1ba71 authored by Łukasz Nowak's avatar Łukasz Nowak

Fallback to default ceredential extraction.

As there is not default ERP5 extraction plugin, new plugins shall fallback
to default way of ERP5 extraction mechanism: DumbHTTPExtractor from PAS.
parent d2d91388
......@@ -34,6 +34,7 @@ from Products.PluggableAuthService.interfaces import plugins
from Products.PluggableAuthService.utils import classImplements
from Products.PluggableAuthService.permissions import ManageUsers
from Products.PluggableAuthService.plugins.BasePlugin import BasePlugin
from Products.PluggableAuthService.PluggableAuthService import DumbHTTPExtractor
#Form for new plugin in ZMI
manage_addERP5ExternalAuthenticationPluginForm = PageTemplateFile(
......@@ -99,6 +100,9 @@ class ERP5ExternalAuthenticationPlugin(BasePlugin):
user_id = getHeader(self.user_id_key)
if user_id is not None:
creds['external_login'] = user_id
# fallback to default way
return DumbHTTPExtractor().extractCredentials(request)
#Complete credential with some informations
if creds:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment