Password reset crash with "multiple authentication backends" message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical SSO provider |
Fix Released
|
Undecided
|
Maximiliano Bertacchini |
Bug Description
SSO has logged a few instances of a crash during password reset POST, with message:
"You have multiple authentication backends configured and therefore must provide the `backend` argument or set the `backend` attribute on the user."
Haven't been able to reproduce, but looking closely at the code, it'll happen if *all* authentication backends (LaunchpadBackend, django's ModelBackend, OpenIDBackend) return `None` (verified locally by forcing a couple of `return None`). I suspect a rare combination of account+email states might be to blame (e.g. invalid, suspended, etc).
Backtrace:
ValueError: You have multiple authentication backends configured and therefore must provide the `backend` argument or set the `backend` attribute on the user.
File "django/
response = get_response(
File "django/
response = self._get_
File "django/
response = self.process_
File "django/
response = wrapped_
File "django/
return func(*args, **kwargs)
File "webui/
return self.view_
File "webui/
return fn(request, *args, **kwargs)
File "webui/
auth.
File "django/
'You have multiple authentication backends configured and '
Related branches
- Daniel Manrique (community): Approve
-
Diff: 14 lines (+3/-1)1 file modifiedsrc/webui/views/ui.py (+3/-1)
description: | updated |
description: | updated |
Changed in canonical-identity-provider: | |
status: | New → In Progress |
assignee: | nobody → Maximiliano Bertacchini (maxiberta) |
Changed in canonical-identity-provider: | |
status: | In Progress → Fix Committed |
Changed in canonical-identity-provider: | |
status: | Fix Committed → Fix Released |