Skip to content
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

WIP: experimental session checker; redirect when session timesout #429

Open
wants to merge 6 commits into
base: development_3.0
Choose a base branch
from

Conversation

alx652
Copy link
Collaborator

@alx652 alx652 commented May 25, 2023

Note this PR is not ready to merge, even assuming the code logic is good.
There are some configs/files that should be leaned up before merging.

This follows from a request from IDMP to redirect when a session is not longer valid.

The component checks whoami at some regular interval. If there is no user, the either:

redirects to login page (disabled for now)
external url
or makes an alert box.

sample configuration

 "logoutRedirectUrl": "https://google.com",
  "unauthorized": { 
    "link": "https://google.com",
    "message": "You are not authorized to access this resource.<br>Check this link. Login, or use the contact email to request access.",
    "redirectToHome": true,
    "redirectUrl": "https://google.com"
  },
  "sessionChecker": {
    "interval": "1",
    "check": true,
    "redirectUrl": "https://google.com",
    "alertMessage": "There's not a valid session."
  },
  "apiBaseUrl": "http://localhost:8081/",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant