Skip to content

Conversation

@hmpf
Copy link
Owner

@hmpf hmpf commented Oct 15, 2020

This adds user impersonation with django-su. Unfortunately we need a feature that django-su doesn't have yet (different actions on impersonated login vs logout) so the code is stashed away here for the time being.

@@ -0,0 +1,17 @@
from django.contrib.auth import login
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file, I would personally call it for example su.py.

@hmpf hmpf force-pushed the user-impersonation branch from a08e9e7 to 4241885 Compare November 3, 2020 07:14
@codecov
Copy link

codecov bot commented Nov 3, 2020

Codecov Report

Merging #141 (4241885) into master (89821b7) will increase coverage by 5.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #141      +/-   ##
==========================================
+ Coverage   56.01%   61.03%   +5.01%     
==========================================
  Files          87      110      +23     
  Lines        6218     6721     +503     
==========================================
+ Hits         3483     4102     +619     
+ Misses       2735     2619     -116     
Impacted Files Coverage Δ
src/easydmp/site/urls.py 70.58% <ø> (ø)
src/easydmp/auth/admin.py 100.00% <100.00%> (ø)
src/easydmp/site/settings/base.py 92.64% <100.00%> (+2.48%) ⬆️
src/easydmp/eestore/models.py 53.00% <0.00%> (-4.55%) ⬇️
src/easydmp/dmpt/models.py 52.93% <0.00%> (-4.48%) ⬇️
src/easydmp/plan/models.py 42.58% <0.00%> (-3.76%) ⬇️
src/easydmp/dmpt/api/v2/serializers.py 86.95% <0.00%> (-1.51%) ⬇️
src/easydmp/plan/views/__init__.py 32.64% <0.00%> (-0.27%) ⬇️
src/easydmp/eventlog/models.py 81.20% <0.00%> (-0.13%) ⬇️
src/easydmp/plan/urls.py 100.00% <0.00%> (ø)
... and 66 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89821b7...9cbf0aa. Read the comment docs.

@hmpf hmpf force-pushed the user-impersonation branch from 4241885 to 9cbf0aa Compare February 18, 2021 10:20
@hmpf hmpf added the blocked label Mar 2, 2021
@hmpf
Copy link
Owner Author

hmpf commented Mar 2, 2021

The 3rd party library doesn't quite do what we need it to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants