Kevin Sweeney created AURORA-1524:
-------------------------------------
Summary: register_auth_module still checks for callability
Key: AURORA-1524
URL: https://issues.apache.org/jira/browse/AURORA-1524
Project: Aurora
Issue Type: Bug
Reporter: Kevin Sweeney
This results in the following stack trace:
{noformat}
def register_auth_module(auth_module):
"""
Add an auth module into the registry used by
make_session_key. An auth module is discovered
via its auth mechanism.
args:
auth_module: A 0-arg callable that should return
a SessionKey or raises a SessionKeyError
and extend AuthModule.
"""
if not isinstance(auth_module, AuthModule):
raise TypeError('Given auth module must be a
AuthModule subclass, got %s' % type(auth_module))
if not callable(auth_module):
> raise TypeError('auth_module should be callable.')
E TypeError: auth_module should be callable.
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)