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

Javascript adapter: updateToken timeout configuration #25

Open
panuhorsmalahti opened this issue Mar 1, 2022 · 0 comments
Open

Javascript adapter: updateToken timeout configuration #25

panuhorsmalahti opened this issue Mar 1, 2022 · 0 comments
Assignees

Comments

@panuhorsmalahti
Copy link

Description

It should be possible to specify a timeout, say 2 minutes, for the updateToken HTTP request. Currently if the HTTP request is stuck as "Pending", Keycloak will be stuck and can't refresh the token anymore (due to how the updateToken method is implemented).

Discussion

No response

Motivation

If the HTTP request is stuck, Keycloak JavaScript adapter can't update the token anymore even with repeated updateToken requests.

Details

This could be specified as an option when constructing Keycloak. Alternatively (less ideal in my opinion), as a parameter to updateToken method.

The timeout is simple to implement with https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout.

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 a pull request may close this issue.

1 participant