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

Make sure a transaction cache update also sets the lifetime #268

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

marcemmers
Copy link
Contributor

No description provided.

@@ -573,6 +573,7 @@ AuthorizeResponse ChargePoint::validate_token(const IdToken id_token, const std:
response = this->authorize_req(id_token, certificate, ocsp_request_data);

if (auth_cache_enabled) {
update_id_token_cache_lifetime(response.idTokenInfo);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: just to be consistent. We are using this everywhere

Suggested change
update_id_token_cache_lifetime(response.idTokenInfo);
this->update_id_token_cache_lifetime(response.idTokenInfo);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, good call, missed that one. Please keep these nit's coming ;)

@marcemmers marcemmers force-pushed the me-fix-cache-lifetime branch from e02b66d to 503fd86 Compare November 22, 2023 11:02
@marcemmers marcemmers merged commit 463975f into main Nov 22, 2023
@marcemmers marcemmers deleted the me-fix-cache-lifetime branch November 22, 2023 11:05
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.

2 participants