JARVIS-412 progress with auth middleware