pam-oauth2 icon indicating copy to clipboard operation
pam-oauth2 copied to clipboard

Debug Recommendations

Open guzman-raphael opened this issue 5 years ago • 1 comments

Nice plugin! Working as expected.

Any recommendations for a debug/breakpoint setup if I am looking to extend this?

guzman-raphael avatar Apr 27 '20 14:04 guzman-raphael

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.

CyberDem0n avatar Apr 27 '20 14:04 CyberDem0n