Horizon not handles exception while trying to login using 'Keystone Google Federation With OpenID'

Bug #1617316 reported by Stanislav Kolenkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Confirmed
Medium
MOS Horizon
9.x
Confirmed
Medium
MOS Horizon

Bug Description

Checking 'Keystone Google Federation With OpenID' feature for future integration with the client's deployment here. Looks like an issue in Horizon in MOS 9.0:
If we set WEBSSO_ENABLED = True in config file /etc/openstack-dashboard/local_settings.py:
205 # Enables keystone web single-sign-on if set to True.
206 WEBSSO_ENABLED = True
207 WEBSSO_CHOICES = (
208 ("credentials", _("Keystone Credentials")),
209 ("oidc", _("Google Login")))
210 WEBSSO_INITIAL_CHOICE = "credentials"

Button connect is not active after you press back on your browser

Steps to reproduce:
1. Open Horizon and choose 'Authenticate using: Google Login' option
2. Left Click on 'Connect' button
3. [Issue] Browser navigates to other page showing raw JSON with Error from Google Accounts. Go 'Backfter that Buttom Connect isn't enabled

Expected: Error handled, login functionality active and can be re-used without page reload
Actual: Browser shows raw json, button connect is not active after you press 'Back' button in a browser

I have tested this in Firefox 47.0 and Safari 9.1.2

On the controller nodes have been installed the following horizon packages:
ii horizon-vendor-theme 1.0.0~mos8-2~u14.04+mos3 all SCSS theme package for horizon
ii python-django-horizon 2:9.0.1-2~u14.04+mos22 all Django module providing web interaction with OpenStack
ii openstack-dashboard 2:9.0.1-2~u14.04+mos22 all web application to control an OpenStack cloud
ii openstack-dashboard-apache 2:9.0.1-2~u14.04+mos22 all web application to control an OpenStack cloud - Apache support
ii python-murano-dashboard 1:2.0.0-4.1~u14.04+mos11 all cloud-ready application catalog - dashboard plugin

Tags: area-horizon
Revision history for this message
Stanislav Kolenkin (skolenkin) wrote :
Changed in mos:
assignee: nobody → MOS Horizon (mos-horizon)
importance: Undecided → Medium
importance: Medium → High
Changed in mos:
status: New → Confirmed
milestone: none → 9.1
tags: added: area-horizon
Timur Sufiev (tsufiev-x)
Changed in mos:
assignee: MOS Horizon (mos-horizon) → Paul Karikh (pkarikh)
Revision history for this message
Paul Karikh (pkarikh) wrote :

Since we have workaround (reload page) and this issue exists with misconfigured WEBSSO (as we found out with Stanislav after hangouts call), I think this bug has medium importance.

Changed in mos:
importance: High → Medium
Paul Karikh (pkarikh)
Changed in mos:
milestone: 9.1 → 9.2
Changed in mos:
assignee: Paul Karikh (pkarikh) → MOS Horizon (mos-horizon)
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Whatever the issue with disabled 'Connect' button was, it's gone in current 9.0/mitaka branch, tested on both Chrome 54 and Firefox 47.

Changed in mos:
status: Confirmed → Fix Committed
tags: added: on-verification
Revision history for this message
Ekaterina Shutova (eshutova) wrote :

Verified on 9.2 snapshot #682
Problem is reproduced with scenario:
1. Open Horizon and choose 'Authenticate using: Google Login' option
2. Left Click on 'Connect' button
3. Browser navigates to other page showing raw JSON with Error from Google Accounts.
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
After going 'Back'(<-) button 'Connect' isn't enabled.

tags: removed: on-verification
Changed in mos:
status: Fix Committed → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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