Trying to add a server extension that serves static web content from a particular directory. tornado.web.StaticFileHandler
will do the job to provide public content, but for content requiring authentication I tried jupyter_server.base.handlers.AuthenticatedFileHandler
. It works for serving raw (i.e. HTML) content but produces 302 errors when a client tries to fetch javascript/ images or CSS for rendering webpages.
Is there an example using AuthenticatedFileHandler
to serve web pages somewhere?