Package Products :: Package ZenUtils :: Package patches :: Module pasmonkey |
[hide private]
[frames] | no frames]

# Module pasmonkey

source code

    This module contains monkey patches we needed to make to PAS when we switched
    from native ZODB-managed authentication to pluggable authentication.

    This module needs to be imported by ZenUtils/__init__.py.

    Related tickets:
      http://dev.zenoss.org/trac/ticket/379
      http://dev.zenoss.org/trac/ticket/402
      http://dev.zenoss.org/trac/ticket/443
      http://dev.zenoss.org/trac/ticket/1042
      http://dev.zenoss.org/trac/ticket/4225

Functions | [hide private]
manage_afterAdd(self, item, container) We don't want CookieAuthHelper setting the login attribute, we we'll override manage_afterAdd(). | source code
login(self) Set a cookie and redirect to the url that we tried to authenticate against originally. | source code
termsCheck(self) Check to see if the user has accepted the Zenoss terms. | source code

Variables | [hide private]
| pas = `PluggableAuthService.PluggableAuthService`

Function Details | [hide private]

### manage_afterAdd(self, item, container) | source code
We don't want CookieAuthHelper setting the login attribute, we we'll override manage_afterAdd(). For now, the only thing that manage_afterAdd does is set the login_form attribute, but we will need to check this after every upgrade of the PAS.

### login(self) | source code
Set a cookie and redirect to the url that we tried to authenticate against originally. FIXME - I don't think we need this any more now that the EULA is gone -EAD