          except (TypeError, UnicodeDecodeError, binascii.Error):
              msg = _('Invalid basic header. Credentials not correctly base64 encoded.')
              raise exceptions.AuthenticationFailed(msg)
  
          userid, password = auth_parts[0], auth_parts[2]
          return self.authenticate_credentials(userid, password, request)
  
      def authenticate_credentials(self, userid, password, request=None):
          """
          Authenticate the userid and password against username and password
 
</s> remove             auth_parts = auth_decoded.partition(':')
        except (TypeError, UnicodeDecodeError, binascii.Error):
 </s> add             userid, password = auth_decoded.split(':', 1)
        except (TypeError, ValueError, UnicodeDecodeError, binascii.Error):
          except (TypeError, UnicodeDecodeError, binascii.Error):
              msg = _('Invalid basic header. Credentials not correctly base64 encoded.')
              raise exceptions.AuthenticationFailed(msg)
  

          return self.authenticate_credentials(userid, password, request)
  
      def authenticate_credentials(self, userid, password, request=None):
          """
          Authenticate the userid and password against username and password
keep keep keep keep replace keep keep keep keep keep
 replace partition with split in BasicAuthentication (#8790)

* replace partition with split in BasicAuthentication

* test if basic auth without provided password fails 
rest_framework/authentication.py