Auth Middleware in Slim 4

Hi @Vino I see at least 2 or 3 issue in this codebase.

  1. The container is not fully initialized. Better create the PHP-DI container with the ContainerBuilder.

  2. Use RouteContext to retrieving the current route.

  3. A last tip: Use the the BasePathMiddleware as decribed here.