These are chat archives for cherrypy/cherrypy

3rd
May 2018
Bruce Karsh
@brucekarsh
May 03 2018 18:47

Probably some newbie questions... I want to add a login and sessions to my cherrypy site. I found https://github.com/cherrypy/tools/blob/master/AuthenticationAndAccessRestrictions

Is that what I should be using?

Also, is there someplace I can pip3 install it from, or should I just copy auth.py to my src directory?

Is the intent that I should modfy auth.py, or should I subclass it to add my own check_credentials?

Bruce Karsh
@brucekarsh
May 03 2018 19:02

Along the same lines, I see class cherrypy.lib.cptools.SessionAuth.

Is that a better choice for adding login and sessions to a cherrypy site?