1👍
✅
I think you need to do like
class MyRemoteUserBackend(RemoteUserBackend):
def clean_username(self, username):
return username.split('\\')[1]
Then
AUTHENTICATION_BACKENDS = [
'path.to.MyRemoteUserBackend',
'django.contrib.auth.backends.ModelBackend',
]
Source:stackexchange.com