graphsense-dashboard icon indicating copy to clipboard operation
graphsense-dashboard copied to clipboard

Improve logout / re-login in Dashboard

Open behas opened this issue 3 years ago • 5 comments

At the moment, it is unclear whether a user session timed out.

Current situation:

  • user goes back to landing page and resubmits API key

Improved design:

  • avoid automated logout / inactivity warning (pop-up)
  • show remaining request

behas avatar Jan 26 '21 13:01 behas

Can't reproduce. Session seems to be renewed as long the browser tab is open.

Showing remaining requests currently not possibles because this information is transfered in the response header.

myrho avatar May 28 '21 09:05 myrho

Users still seem to have issues dealing with API limits on the dashboard:

"Es gibt keine Möglichkeit, zu erfahren, wann das Request-Limit erreicht wurde und damit weiß man auch nicht, ab wann man wieder Requests senden kann. Vielleicht könnte die Uhrzeit neben den Events im Log stehen? Oder explizit, “you can start sending new request at $current_time+1h”

Ist es möglich, dass das Einloggen im Dashboard als Request zählt? Bei 100 erreichten Requests bleibt die Seite bei „Signing in …“ stehen. Damit kann ich die Wartezeit auch nicht mit Offlinearbeit überbrücken (einloggen und lokal gespeicherte GS-Datei importieren).

Suggested solution:

  • provide a REST interface method (e.g., /status) that returns information on the user status (e.g., active_since; hourly_requests; remaining_requests)
  • periodically query that interface and and display "remaining requests out of hourly requests" somewhere in the status bar.

behas avatar Jun 21 '21 11:06 behas

see also #251 and #252

behas avatar Nov 24 '21 10:11 behas

Invalidate browser cookie on 401 error. Currently browser keeps sending invalid cookie value so proxy ignores 'Authorization' header.

myrho avatar Nov 29 '21 10:11 myrho

@myrho is this still an issue after our last changes?

soad003 avatar Sep 18 '23 15:09 soad003