Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Javascript adapter: updateToken timeout configuration #1426

Closed
panuhorsmalahti opened this issue Mar 1, 2022 · 1 comment
Closed

Javascript adapter: updateToken timeout configuration #1426

panuhorsmalahti opened this issue Mar 1, 2022 · 1 comment

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.

@panuhorsmalahti
Copy link
Author

Sorry, made the issue in wrong repo.

keycloak/keycloak-js#25

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

No branches or pull requests

2 participants