The SU app is used to change the current logged in user on-the-fly.
In order to achieve this goal, the module introduces concept of effective
and real user privileges known from Unix-like systems. The effective
user is stored in
request.user field, while the real in
On-the-fly means that current session variables are preserved while changing effective user, which may be also a pitfall if some code stores there data directly connected with current user scope.
- oioioi.su.SU_UID_SESSION_KEY = su_effective_user_id¶
- oioioi.su.SU_BACKEND_SESSION_KEY = su_effective_backend¶