Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1524

register_auth_module still checks for callability

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • None
    • None

    Description

      This results in the following stack trace:

                               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.
      

      Attachments

        Activity

          People

            kevints Kevin Sweeney
            kevints Kevin Sweeney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: