NASA-PDS / doi-ui

The web interface for the PDS DOI Service providing the ability management PDS archive DOIs. See the DOI Service for more details on the available capabilities. https://nasa-pds.github.io/doi-service/
Apache License 2.0
0 stars 4 forks source link

When authentication is not valid anymore, need to make a different message than when the API is down. #159

Closed tloubrieu-jpl closed 2 years ago

tloubrieu-jpl commented 2 years ago

When the back-end API is not reachable because authentication became invalid we need a different message than when the API is not reachable.

I think during the test we need to catch specific status (401 or 403) and make a new message saying "your authentication is not valid anymore, please reload and create a new session".

To reproduce the current error:

  1. login on the pds-gamma instance https://pds-gamma.jpl.nasa.gov/tools/doi-editor
  2. wait for 5+ minutes until the session expires
  3. create a DOI from an online PDS4 label
  4. you should see that: image
jimmie commented 2 years ago

@ramesh-maddegoda is helping out w/ this. Eddie waiting on this.

Ramesh has completed Cognito integration.

jordanpadams commented 2 years ago

Status: @ramesh-maddegoda 95% complete for server and client side updates. also has auto-refresh token functionality which is valid for 30 days. we can set a flag in the library to handle this for us. only remaining thing is to fix logout functionality

ramesh-maddegoda commented 2 years ago

The changes related with application level authentication (with Cognito ) in doi-ui is completed and I made a pull request at https://github.com/NASA-PDS/doi-ui/pull/164

ramesh-maddegoda commented 2 years ago

Merged changes