MCPcopy Index your code
hub / github.com/encode/django-rest-framework / perform_authentication

Method perform_authentication

rest_framework/views.py:322–330  ·  view source on GitHub ↗

Perform authentication on the incoming request. Note that if you override this and simply 'pass', then authentication will instead be performed lazily, the first time either `request.user` or `request.auth` is accessed.

(self, request)

Source from the content-addressed store, hash-verified

320 raise
321
322 def perform_authentication(self, request):
323 """
324 Perform authentication on the incoming request.
325
326 Note that if you override this and simply 'pass', then authentication
327 will instead be performed lazily, the first time either
328 `request.user` or `request.auth` is accessed.
329 """
330 request.user
331
332 def check_permissions(self, request):
333 """

Callers 1

initialMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected