Username and password fields are required even when SSO is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
django-openstack-auth |
New
|
Undecided
|
Unassigned |
Bug Description
Using OpenID Connect for SSO, if I choose the SSO option for login, there is no Username or Password field. However (in at least Chrome and Firefox) the Javascript validates that they are filled in, which means you can't get to the SSO page.
This seems to be because in the HTML, there is the required tag in the <input> tags:
<input type="text" name="username" autofocus=
and
<input type="password" name="password" required class="
And all changing to SSO in the drop down does is to hide the form inputs. You can get past by changing to Keystone credentials, entering a dummy username and password, then switching to SSO, showing that the required fields are the cause.
This patch fixes it, but doesn't quite feel right for the non-SSO case:
diff --git a/openstack_
index c7d0c51..90a9fd7 100644
--- a/openstack_
+++ b/openstack_
@@ -50,9 +50,11 @@ class Login(django_
region = forms.ChoiceFie
username = forms.CharField(
- widget=
+ widget=
+ required=False)
password = forms.CharField
- widget=
+ widget=
+ required=False)
def __init__(self, *args, **kwargs):
Or am I just missing a config option somewhere?