code: def _validate_user_class(cls, user_class):
          
          PraetorianError.require_condition(
              getattr(user_class, 'lookup', None) is not None,
              textwrap.dedent("""
                  The user_class must have a lookup class method:
                  user_class.lookup(<str>) -> <user instance>
              """),
          )
          PraetorianError.require_condition(
              getattr(user_class, 'identify', None) is not None,
              textwrap.dedent("""
                  The user_class must have an identify class method:
                  user_class.identify(<identity>) -> <user instance>
              """),
          )
          # TODO: Figure out how to check for an identity property
          return user_class
docs: Validates the supplied user_class to make sure that it has the
          class methods necessary to function correctly.
  
          Requirements:
  
          - ``lookup`` method. Accepts a string parameter, returns instance
          - ``identify`` method. Accepts an identity parameter, returns instance