Auth objects can currently be loaded dynamically with a Config type
argument. For greater flexibility, allow to pass dict and StringTree
mappings to load(), too.
Signed-off-by: Jan Lindemann <jan@janware.com>
Expecting possible confusion regarding further base class gymnastics,
e.g. multiple inheritance, make it impossible to pass constructor
arguments to User and Group as blank positional arguments, force
passing the argument names instead by adding "*" as first argument.
Signed-off-by: Jan Lindemann <jan@janware.com>
User and Group share now enough properties to tie them closer
together. The number of these properties will likely grow:
email-address, nested groups and others. This commit introduces
AuthEntity as a common base class to make that happen.
Signed-off-by: Jan Lindemann <jan@janware.com>
Move all implementation source code from the jwutils module to
jw.util. For compatibility with existing Python modules, keep a thin,
autogenerated compatibility shim under jwutils.
Signed-off-by: Jan Lindemann <jan@janware.com>