Skip to content

Commit

Permalink
fix for split (#2)
Browse files Browse the repository at this point in the history
* split authenticate into separate overridable function

* cleaner exception

* basic unit test

* remove new test

* space to revert change

* return the user
  • Loading branch information
marcelkornblum authored Apr 28, 2023
1 parent 984179d commit 09b3801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions djangosaml2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,8 @@ def authenticate_user(
self.post_login_hook(request, user, session_info)
self.customize_session(user, session_info)

return user

def post_login_hook(
self, request: HttpRequest, user: settings.AUTH_USER_MODEL, session_info: dict
) -> None:
Expand Down

0 comments on commit 09b3801

Please sign in to comment.