functions

auth_middleware.functions.get_current_user()

Returns the current user object if it exists

auth_middleware.functions.require_groups(allowed_groups: List[str])

Check if the user has the required groups

Args:

allowed_groups (List[str]): a list of required groups

auth_middleware.functions.require_user()

Check if the user is authenticated