django-saml2-auth icon indicating copy to clipboard operation
django-saml2-auth copied to clipboard

Hooks should be passed the User instance

Open tchaumeny opened this issue 3 years ago • 0 comments

Currently, the hooks CREATE_USER and BEFORE_LOGIN are passed the user_identity from SAML.

They should also be passed a the matching target_user — it is available at that point. That would help implement features like checking for specific flags on User to authorize SAML login or saving information related to user when created or logged in.

tchaumeny avatar Jun 28 '21 07:06 tchaumeny