Middlewares to support Stack-2 Authentication conventions