diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index a2ba53480..43950f697 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -1,6 +1,7 @@ """ Provides various authentication policies. """ +import abc import base64 import binascii @@ -30,7 +31,7 @@ class CSRFCheck(CsrfViewMiddleware): return reason -class BaseAuthentication: +class BaseAuthentication(abc.ABC): """ All authentication classes should extend BaseAuthentication. """