MCPcopy
hub / github.com/encode/django-rest-framework / auth

Method auth

rest_framework/request.py:249–257  ·  view source on GitHub ↗

Returns any non-user authentication information associated with the request, such as an authentication token.

(self)

Source from the content-addressed store, hash-verified

247
248 @property
249 def auth(self):
250 """
251 Returns any non-user authentication information associated with the
252 request, such as an authentication token.
253 """
254 if not hasattr(self, '_auth'):
255 with wrap_attributeerrors():
256 self._authenticate()
257 return self._auth
258
259 @auth.setter
260 def auth(self, value):

Callers

nothing calls this directly

Calls 2

_authenticateMethod · 0.95
wrap_attributeerrorsFunction · 0.85

Tested by

no test coverage detected