Comments (3)
What do you mean exactly ? As of now, endpoints are secured by the implementation of Http4TransportServer
. Example here:
The secureFilter is that method in HttpUtils
:
The secured
boolean is set to true by default in transportServer.handle()
.
It is used by every OCPI module server implementation. Example in LocationsCpoServer.kt
:
from ocpi-toolkit.
Oh, sorry. I'm talking about the required endpoints from the other platform. From the documentation:
7.1.6. Required endpoints not available
When two platforms connect, it might happen that one of the platforms expects a certain endpoint to be available at the other platform.
For example: a Platform with a CPO role could only want to connect when the CDRs endpoint is available in an platform with an eMSP role.
In case the Sender (starting the credentials exchange process) cannot find the endpoints it expects, it is expected NOT to send the POST request with credentials to the Receiver. Log a message/notify the administrator to contact the administrator of the Receiver platform.
In case the Receiver platform that cannot find the endpoints it expects, then it is expected to respond to the request with the status code 3003.
from ocpi-toolkit.
For that to be implemented, we would need to add a nullable parameter that would be something like "expectedEndpoints". If this is set, during client registration, we need to stop it if the expected endpoints are not available on the receiver
from ocpi-toolkit.
Related Issues (20)
- Request Parameter vs. Owned Object values validation
- DELETE endpoint of Credentials module HOT 1
- Credentials PUT/DELETE methods should return 405 METHOD NOT ALLOWED when the partner is not registered
- If there is an exception, the debug headers are not included in the response.
- Question on the validation of objects HOT 3
- Implement CDR module HOT 3
- Java compatibility
- Module separation HOT 2
- Don't publish annotation-processor & common module to maven central HOT 5
- Credentials sample does not work
- DateTime without the timezone cannot be parsed
- UTF-8 validator only allows for ASCII characters
- If there is an exception, the Message Routing Headers are not included in the response.
- Parsing errors in the JSON request body are not reported to the requester
- Not Base64-encoded authorization token results in HTTP 500 error
- Missing Capabilities HOT 1
- IndexOutOfBoundsException is thrown if pagination header Link is present but empty
- (discussion) OcpiResponseBody fields in snake_case HOT 1
- date_from in Sessions Sender Interface must be required HOT 1
- twentyforseven should be "twentyforseven" not "twenty_for_seven" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocpi-toolkit.