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

Add local authorization list management calls (D01 and D02) #153

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

marcemmers
Copy link
Contributor

No description provided.

@marcemmers
Copy link
Contributor Author

marcemmers commented Aug 24, 2023

I was actually pondering if I should hash the token_id and token_id_type here as well but the ocpp spec does not have a recommendation for it for the local auth list. Any opinions here?

Edit: Spoke to Robert about this and we thought it best to use the hash here too. The only downside we could think of was the size a token takes in the database. I think the hash will be a minor proportion of a token in the local list as it is but we want to we could improve it a bit by storing the hash as base32 or a raw blob.

Copy link
Contributor

@Pietfried Pietfried left a comment

Choose a reason for hiding this comment

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

Looks good apart from one minor comment. Please rebase and squash your commits

@marcemmers marcemmers requested a review from Pietfried August 29, 2023 13:28
Signed-off-by: Maaike Zijderveld, Alfen <[email protected]>

Remove comments, already taken care of in other branch

Signed-off-by: Marc Emmers <[email protected]>

Update local list database; uses both token and type as primary key, store token_info as json string

Signed-off-by: Marc Emmers <[email protected]>

Updated local list functions using new sqlite wrapper

Signed-off-by: Marc Emmers <[email protected]>

Add database function to get number of entries

Signed-off-by: Marc Emmers <[email protected]>

Add local list functions (wip)

Signed-off-by: Marc Emmers <[email protected]>

Update config with actual values

Signed-off-by: Marc Emmers <[email protected]>

Fix enabled check and writing the number of entries

Signed-off-by: Marc Emmers <[email protected]>

Add missing status for differential update

Signed-off-by: Marc Emmers <[email protected]>

Consistent naming of local authorization list functions

Signed-off-by: Marc Emmers <[email protected]>

Fix style

Signed-off-by: Marc Emmers <[email protected]>

Use hash for storing local list items too. Fix SQL style issue in init_core.sql

Signed-off-by: Marc Emmers <[email protected]>

Move function to appropriate location and use the request directly without the call wrapper

Signed-off-by: Marc Emmers <[email protected]>
@marcemmers marcemmers merged commit 62b4959 into main Sep 6, 2023
@marcemmers marcemmers deleted the mz-authlist branch September 6, 2023 13:48
bWF0dGhpYXMK pushed a commit to bWF0dGhpYXMK/libocpp that referenced this pull request Sep 27, 2023
Remove comments, already taken care of in other branch



Update local list database; uses both token and type as primary key, store token_info as json string



Updated local list functions using new sqlite wrapper



Add database function to get number of entries



Add local list functions (wip)



Update config with actual values



Fix enabled check and writing the number of entries



Add missing status for differential update



Consistent naming of local authorization list functions



Fix style



Use hash for storing local list items too. Fix SQL style issue in init_core.sql



Move function to appropriate location and use the request directly without the call wrapper

Signed-off-by: Marc Emmers <[email protected]>
Co-authored-by: Maaike Zijderveld, Alfen <[email protected]>
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.

3 participants