AllowAllUsersRemoteUserBackend
This class provides an authentication backend that allows all remote users to authenticate regardless of their active status. It overrides the default authentication behavior to ensure that the user validation check always returns true.
Constructor
Signature
def AllowAllUsersRemoteUserBackend()
Methods
user_can_authenticate()
@classmethod
def user_can_authenticate(
user: [User](../models/user.md?sid=django_contrib_auth_models_user)
) - > boolean
Determines if a user is permitted to authenticate, always returning True to bypass standard authentication restrictions.
Parameters
| Name | Type | Description |
|---|---|---|
| user | [User](../models/user.md?sid=django_contrib_auth_models_user) | The user instance being evaluated for authentication permissions. |
Returns
| Type | Description |
|---|---|
boolean | Always returns True, indicating the user is authorized to authenticate regardless of their account status. |