-
Notifications
You must be signed in to change notification settings - Fork 93
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
Extensions/plugins #82
Comments
Hi Andreas, the current "raw" hook was only the first step. As you suggested an authentication hook and also a status hook (free/connected and current meter values) will be usefull. With your suggested method signature: |
Have you started looking into how to call extension methods from within ControllerOCPP*.cs Moving _rawMessageSings along with a new _authorizeSinks into a common extensionMethods object that is supplied to ControllerOCPPXX constructor is one option I added initial work on this to this commit andreasringdal@19b32bd |
Extensions for SQL authorize and Transaction handling. Bugfix: Nullcheck on Charging tag to avoid exceptions when tag is not found
Ended up moving extension handling into separate class |
Sorry for the late response. I'm pretty busy at the moment. I am on the same path. The integration for external authentications is more complex than forwarding messages. I will move it into a seperate class. |
I have implemented a "SQLAuthentication" extension that calls a stored procedure for authenticating. |
@dallmann-consulting Issue added to discuss commit 61511ff and further development of extensions/plugins
Extension framework is a great way of customizing OCPP.Core.
There is one more hook that we will need to add for our use. Authorize based on tagId and chargerId
Current the method will be something in the line of
Background
On the system we are forwarding OCPP messages to we have assigned charging token to users and chargers to rooms/areas in the system.
We authorize users based on their current access to the room.
My current hack in Ocpp.server is to call a stored procedure with a custom connection string.
Planned Autorize Extension takes tagId + chargepointid as input and checks if the combination is allowed to use this charger at the current time.
The same procedure is run at starttransaction and stoptransaction.
We will develop our authorize extension custom for our system, but the hooks will be general for reuse.
We have current transaction data stored in our system and does not require information regarding transactionid and startTag but this information might be of use for Authorize adons for others
The text was updated successfully, but these errors were encountered: