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

Method successful_authenticator

rest_framework/request.py:269–277  ·  view source on GitHub ↗

Return the instance of the authentication instance class that was used to authenticate the request, or `None`.

(self)

Source from the content-addressed store, hash-verified

267
268 @property
269 def successful_authenticator(self):
270 """
271 Return the instance of the authentication instance class that was used
272 to authenticate the request, or `None`.
273 """
274 if not hasattr(self, '_authenticator'):
275 with wrap_attributeerrors():
276 self._authenticate()
277 return self._authenticator
278
279 def _load_data_and_files(self):
280 """

Callers

nothing calls this directly

Calls 2

_authenticateMethod · 0.95
wrap_attributeerrorsFunction · 0.85

Tested by

no test coverage detected