ministryofjustice / analytics-platform

Parent repository for the MOJ Analytics Platform
MIT License
14 stars 1 forks source link

Stuck in unidling page #47

Closed RobinL closed 6 years ago

RobinL commented 6 years ago

The new hibernation page (which has rich formatting using the control panel/gov uk template) refreshes itself in an infinite loop, never taking the user to their R Studio, even when R Studio has correctly restored.

davidread commented 6 years ago

I experienced it. I believe it's caused by the MFA challenge change. The work-around is to hit Cmd-R to refresh the browser and it properly brings up the MFA screen and lets you access R Studio.

Reproduce

  1. Make sure you're on 102PF wifi (at least not on a corporate network, so that it challenges MFA every time)
  2. On alpha cpanel click "Unidle" for R Studio
  3. It shows unidling screen which reloads every 5 seconds, but never takes you to R Studio.

Analysis

The loop requests look like:

but if I force refresh the page it takes me to: https://alpha-analytics-moj.eu.auth0.com/mf?state=0nOxxxxxRheqdU

Solving it

cpanel's callback needs to spot the url parameters: ?error=login_required&error_description=Multifactor%20authentication%20required and redirect to auth0.com/MFA instead of auth0.com/authorize.

I won't look at this straight-away, as we have higher priorities.

davidread commented 6 years ago

Workaround is to refresh the browser (Ctrl-R / cmd-R)

xoen commented 6 years ago

We deployed a new version of the unidler so closing this as this specific issue may not happen anymore.