-
Notifications
You must be signed in to change notification settings - Fork 6
132 reactive search routes when token expire logout #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
132 reactive search routes when token expire logout #164
Conversation
* Removed placeholder right column on Explore page. Switched to clickable card for datasets. * Show only 5 max lines for description of dataset card and add ellypsis. * Default sort dataset list by creation date descending. * Make sure Dataset CardActionArea fills the card so that CardAction is flushed at the bottom. * Fixed dataset grid so that items are same width even if we don't have enough for one row. * New previous/next buttons on dataset list. * Change default page size for dataset list to 20, a multiple of 4, the default screen size columns size. * Placeholder icons for download card download, favorite, share actions. * Black formatting. * Extra margin around dataset card icons to make it easier to click on icons. * Set outer grid item size for proper layout when there is few datasets.
…to dropdown-toggle-between-indices
…to 132-reactive-search-routes-when-token-expire-logout
| if (error["status"] === 401 || error["status"] === 403) { | ||
| V2.OpenAPI.TOKEN = undefined; | ||
| cookies.remove("Authorization", {path: "/"}); | ||
| return <Navigate to="/auth/login"/>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot properly do the refresh token logic here; for now just redirect to the login page
| return <Navigate to="/auth/login"/>; | ||
| } else { | ||
| // TODO add prettier message or report function | ||
| return <h1>An error has happened.</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will trigger when elasticsearch is dead (e.g. 500 internal error)
|
There is a build error of the frontend when installing dependencies. |
…esearch # Conflicts: # frontend/package-lock.json
…to 132-reactive-search-routes-when-token-expire-logout
I merge main (where it has the webpack 5 and other dependency change) into the branch that this branch is merged into |
|
Can you resolve conflicts? Thank you! |
done |
To test:

Set the token expiration in keycloak admin console (http://localhost:8080/keycloak) to 1 minute; and type in the search box see what happened after 1 minute