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

fix(setup): Zope root cookie auth and login form #65

Merged
merged 2 commits into from
Dec 29, 2021

Commits on Dec 28, 2021

  1. Configuration menu
    Copy the full SHA
    0bc8832 View commit details
    Browse the repository at this point in the history
  2. fix(setup): Zope root cookie auth and login form

    The GenericSetup "various" import step that originally installs PAS into a Plone portal
    also migrates the Zope root `/acl_users`.  Probably an accident over time, but it
    results in a cookie auth plugin that doesn't work outside of the Plone portal:
    
        2021-12-27 11:12:02,243 ERROR   [Zope.SiteErrorLog:22][waitress-0] ComponentLookupError: http://localhost:49080/api/acl_users/credentials_cookie_auth/login
        Traceback (innermost last):
          Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
          Module ZPublisher.WSGIPublisher, line 372, in publish_module
          Module ZPublisher.WSGIPublisher, line 266, in publish
          Module ZPublisher.mapply, line 85, in mapply
          Module ZPublisher.WSGIPublisher, line 63, in call_object
          Module Products.PlonePAS.plugins.cookie_handler, line 106, in login
          Module Products.PluggableAuthService.PluggableAuthService, line 1153, in updateCredentials
          Module Products.PlonePAS.plugins.cookie_handler, line 74, in updateCredentials
          Module zope.component._api, line 165, in getUtility
        zope.interface.interfaces.ComponentLookupError: (<InterfaceClass plone.registry.interfaces.IRegistry>, '')
    
    This import step also removes the `login_form` template which breaks the challenge
    response.
    
    Add an interface check to decide whether to install Plone's `ExtendedCookieAuthHelper`
    or PAS's vanilla `CookieAuthHelper`.
    rpatterson committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    17deb97 View commit details
    Browse the repository at this point in the history