pam-oauth2
pam-oauth2 copied to clipboard
Debug Recommendations
Nice plugin! Working as expected.
Any recommendations for a debug/breakpoint setup if I am looking to extend this?
Hi @guzman-raphael,
what exactly do you want to debug? The module implements only pam_sm_authenticate(), which calls oauth2_authenticate(). The last one does most of the job.
For local debugging probably the easiest would be adding the main() function and calling oauth2_authenticate() from it.