This PR moves the assert_authorized_group out of the Fusillade Auth class and back to dss.util.security, and fixes the order of imports so there are no conflicts.
This is necessary to do because checking that a group is present under a group claim in a JWT is a common operation that other auth layers besides Fusillade will want to be able to do.
This PR moves the
assert_authorized_group
out of the Fusillade Auth class and back todss.util.security
, and fixes the order of imports so there are no conflicts.This is necessary to do because checking that a group is present under a group claim in a JWT is a common operation that other auth layers besides Fusillade will want to be able to do.
This also fixes the
assert_authorized_group
test.