Getting started coding for Zope 2

https://docs.plone.org/4/en/old-reference-manuals/pluggable_authentication_service/

https://productspluggableauthservice.readthedocs.io/en/latest/

did you see these?