Catch auth.py event in hooks

I have been doing user restriction based on CN in client certificate . On similar lines as ‘Restrict IP’ by adding a custom header at nginx server for client Common Name from SSL Certificate and the restricting user in auth.py .
But for upgrade compatibility now i want to do the same using custom app and hooks.py . Please guide me. Thanks in advance.

I didn’t get any replies , maybe because my question/problem needed more clarity . Anyhow i have implemented the requirement (ie user restriction based on Common Name in client certificate) . I did it using ‘on_session_creation’ trigger in hooks.py .
I am really amazed at the customisablity of the framework . :grinning:

1 Like

You may close the Topic .