Chronograf: Expired auth should navigate user to /login

Created on 4 Apr 2017  路  3Comments  路  Source: influxdata/chronograf

Expired auth is failing to forcibly navigate user to /login.

This seems due to the fact that a different router is currently returned depending on the App container's this.state.loggedIn bool. When that state changes, it's intended to navigate the user to /login, but instead fails with the error that we cannot change <Router routes>:
screen shot 2017-04-03 at 5 29 38 pm

This is related to https://github.com/influxdata/chronograf/issues/1095.

kinbug

All 3 comments

We should also provide a notification to the user on the /login page that their auth has expired.

@gunnaraasen, @jaredscheib and I were talking about how to be more informative to the user when expiration occurs. We were discussing if the server's router should redirect to /login or if the react router should.

The current plan is that the react router will handle the redirect _because_ it gives the front-end opportunity to display good messaging as you ask for above.

Agreed, @gunnaraasen and @goller!

Was this page helpful?
0 / 5 - 0 ratings