Handle the case when authenticate() returns None

Bug #1436040 reported by Lin Hua Cheng
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
django-openstack-auth
New
Medium
Unassigned

Bug Description

When authenticate() returns None, Horizon gets unexpected error of :'AnonymousUser' object has no attribute 'backend'

None is a valid return for authenticate() if the user cannot be validated based on: https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#writing-an-authentication-backend

We should fix the handling in forms so that Horizon can handle the case when None is returned

David Lyle (david-lyle)
Changed in django-openstack-auth:
importance: Undecided → Medium
Ankur Jain (j-ankur)
Changed in django-openstack-auth:
assignee: nobody → Ankur Jain (j-ankur)
Ankur Jain (j-ankur)
Changed in django-openstack-auth:
assignee: Ankur Jain (j-ankur) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.