You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add a flag to the session like request.session["is_sso"] to indicate to other parts of my app that the user's session was established via SSO.
In order to support this feature, you could simply add a flag to the request that tells us that it was authenticated via SSO or via username/password.
This would allow us to use a django signal on login to then set the field.
Another option is to add ability to pass an on_logged_in callback so users of your library can modify the session immediately on establishment with arbitrary logic.
The text was updated successfully, but these errors were encountered:
I'm not against adding additional functionality to django-authlib, e.g. a signal or something, if there are good reasons why the existing hooks aren't sufficient?
I would like to add a flag to the session like
request.session["is_sso"]
to indicate to other parts of my app that the user's session was established via SSO.In order to support this feature, you could simply add a flag to the request that tells us that it was authenticated via SSO or via username/password.
This would allow us to use a django signal on login to then set the field.
Another option is to add ability to pass an
on_logged_in
callback so users of your library can modify the session immediately on establishment with arbitrary logic.The text was updated successfully, but these errors were encountered: