-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add withdraw authorization command in auth interface #992
base: main
Are you sure you want to change the base?
Conversation
564c9ec
to
887138e
Compare
1a9c491
to
692e61a
Compare
std::mutex event_mutex; | ||
std::mutex withdraw_mutex; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could probably also use the event_mutex now, or am I mistaken?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially I thought so too. If we only use the event_mutex
multiple withdraw requests could run in parallel and they could override this->withdraw_request
in that case, because the event_mutex
is released here while waiting for the targeted processing threads to finish. It ensures that only one withdraw_request can run at a time. Since a withdraw request should not block for a significant amount of time this seems to be the best solution to me
adc0be8
to
7dac05d
Compare
* added operator overloading for ProvidedIdToken and IdToken types * Changed tokens_in_process from set of strings to set of ProvidedIdToken to be able to access the referenced connectors * Introduced processing_finished_cv in AuthHandler to be able to notify a withdraw request waiting thread that the processing of a token has finished * Implemented handle_withdraw_authorization function * Added test cases for new functionality * Move Deuathorized event in EvseManager so that its only published in case session is currently active Signed-off-by: Piet Gömpel <[email protected]> Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
53d86a8
to
929afb3
Compare
Describe your changes
This PR adds a
withdraw_authorization
command in theauth
interface and the Auth module.Issue ticket number and link
#978
Checklist before requesting a review