Require auth for everything on server

Steven Sawyer <[email protected]> Sat, 29 Oct 2016 12:37:30 -0700 (PDT)
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
I'm working on my first CherryPy project and it is going pretty well so 
far, but I can't seem to find any examples of what I want to do.

I want to require a name/pass for the entire sever. No matter what page you 
load up it should redirect to a login form. Then it should remember the 
user in a session so we only need to log in once.

Everything I see in examples and tutorials involves securing certain 
methods in the root class or securing just an api, but the only thing I 
want to leave my server without authentication is the login form markup.

What is a good way to do this?

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.