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

Sync user's token expiration time with the configured timeout on the API #1304

Open
AlexRuiz7 opened this issue Apr 18, 2022 · 0 comments
Open
Labels
type/bug Bug issue type/enhancement Enhancement issue

Comments

@AlexRuiz7
Copy link
Member

Describe the solution you'd like
The user's authorization token has a predefined expiration timeout of 900 seconds. Although this expiration time can be changed using the /security/config endpoint, our App uses a hardcoded expiration time, which was initially set to the default 900 seconds.

# timeout of 900 seconds, as specified on the Wazuh API
# TODO get configured value from /security/config endpoint
self.cache.set(token_key, token, 900)

@AlexRuiz7 AlexRuiz7 added type/bug Bug issue type/enhancement Enhancement issue labels Apr 18, 2022
@AlexRuiz7 AlexRuiz7 moved this to Triage in Release 4.4.0 Jun 9, 2022
@gdiazlo gdiazlo removed this from Release 4.4.0 Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue type/enhancement Enhancement issue
Projects
None yet
Development

No branches or pull requests

1 participant