Skip to content

post_authenticated_signal not sent and request missing #117

@JeroenvO

Description

@JeroenvO

Hi,
I found a little bug, same as #37 the post_authenticated signal is not sent.
Line:
https://github.com/knaperek/djangosaml2/blob/master/djangosaml2/views.py#L320
Instead of user sender should be user.__class__.

Next to this, it would be nice to have the request as well.

Suggested fix: Change line 320 to:
post_authenticated.send_robust(sender=user.__class__, instance=user, session_info=session_info, request=request)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions