TACC / tup-ui

React client for TACC User Portal
2 stars 0 forks source link

Task/TUP-602: Improve exception handling in auth backend #328

Closed jarosenb closed 10 months ago

jarosenb commented 11 months ago

Overview

Add a timeout to the backend request made during authentication. Add more generic exception handling so that if TUP-services is unavailable for some reason, the site is still accessible.

Related

Changes

Testing

  1. In the main branch, set TUP_SERVICES_URL in the config to something that doesn't exist. Confirm the existing behavior, which is that failure to connect to tup-services will prevent the entire site from rendering.
  2. Check out the PR branch and do the same thing. You should see the site render but be logged out if you were logged in before.

UI

Notes