You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Kevin Sweeney (JIRA)" <ji...@apache.org> on 2015/10/23 01:41:27 UTC
[jira] [Assigned] (AURORA-1524) register_auth_module still checks
for callability
[ https://issues.apache.org/jira/browse/AURORA-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Sweeney reassigned AURORA-1524:
-------------------------------------
Assignee: Kevin Sweeney
> 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
> Assignee: 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)