Allow service backends to have access to the current request or user
stsewd opened this issue · 0 comments
stsewd commented
Hi, thank you for maintaining mama CAS!
Currently, service backends have access to the service only.
django-mama-cas/mama_cas/services/backends.py
Lines 66 to 88 in 22e3b23
It can be useful to have access to the current user to check if that user is allowed to access the given service.
Maybe the current user can be passed in the constructor or on each method call.
django-mama-cas/mama_cas/models.py
Line 101 in 22e3b23