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

Added on-demand session token refresh #499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

drwonky
Copy link

@drwonky drwonky commented Jul 11, 2023

Added a special case that allows AJAX queries to refresh the session on demand. AJAX queries simply need to add the
header 'X-Refresh-OIDC-Token' to the request and it will reset the session expiration so it generates a reauth redirect. This allows SPAs and other Javascript driven applications to proactively control session refresh.

Added a special case that allows AJAX queries to refresh the session
on demand.  AJAX queries simply need to add the
header 'X-Refresh-OIDC-Token' to the request and it will reset the
session expiration so it generates a reauth redirect.
This allows SPAs and other Javascript driven applications
to proactively control session refresh.
@drwonky
Copy link
Author

drwonky commented Jul 11, 2023

See PR #364 for additional context. This is me cleaning up that PR, even if it's 3 years later 😉

This feature is sorely needed to allow an application to control re-authentication. Say you login to a web app and it tracks how long your session has been open for. It then pops up a warning when you have 30 minutes remaining in your session, then 10 minutes remaining. The popup has a button that would allow the user to re-authenticate directly so they don't have to be rudely interrupted in the middle of their work.

We had this feature in our internal support portal at Oracle so engineers would be prompted to save whatever text they had been writing in a ticket, before their session timed out.

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.

None yet

1 participant