Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verification hooks #24

Open
dcwatson opened this issue Feb 24, 2023 · 0 comments
Open

verification hooks #24

dcwatson opened this issue Feb 24, 2023 · 0 comments

Comments

@dcwatson
Copy link
Member

It would be nice to have some hooks into the verify workflow, to know when a user passed/failed verification. I think the basic idea would be to add a verify kwarg to IdP.authenticate, sp.utils.authenticate, and SAMLAuthenticationBackend.authenticate, then pass verify=True when authenticating a user for verification. Maybe the default implementation in SAMLAuthenticationBackend.authenticate could send a custom user_verified signal with a success parameter. Or maybe separate signals for pass/fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant