| changeset 589 | 0ae11aa255a3 |
| parent 588 | 95536fa18d0d |
| child 665 | 69d13e7dd286 |
| 588:95536fa18d0d | 589:0ae11aa255a3 |
|---|---|
1 from rest_framework.authentication import SessionAuthentication |
|
2 |
|
3 class CsrfExemptSessionAuthentication(SessionAuthentication): |
|
4 """ |
|
5 Session authentication class to use with Renkan client, as it does not provide a csrf token |
|
6 """ |
|
7 |
|
8 |
|
9 def enforce_csrf(self, request): |
|
10 return |