-
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
Auth Token handling seems to be not case-insensitive #566
Comments
Should we treat all the tokens in Everest in a Case-Insensitive way? Or the objects that emit tokes should normalize them to upper? |
From our experience, the tokens coming from a backend via OCPP should be handled as-is interally, e.g. stored unchanged and provided back to the backend in the same way as originally received from the backend. |
Doesn't OCPP explicitly says that token is case-insensitive? I.e. from the protocol perspective the tokens in lower and upper case should be considered the same? What if the next protocol Everest will support works with case-sensitive tokens? |
Yes, that's why we cannot normalize it on the token provider side. The token validators must be fixed. |
The described issue as far as I can see is not in the validator, it is in the Auth module, that compares tokens from OCPP and the from the token provider. |
For now i don't have a real insight into the EVerest code. So i consider most of them as black boxes. |
Hey, this is unrelated, but which charging protocol is being used in EVerest? Is it OCPP or ISO15118? I am looking at the schema for ISO15118 v2 and v20 and do not see any similarities with the messages being trasmitted by everest(messages obtained from MQTT explorer while running everest on Linux machine) |
@rohansaibuddhi Please don't hijack this bug report and look at the official documentation In case your questions have not been answered, please use the Zulip |
Environment:
Test Sequence:
Expected Behavior:
Observed Behavior:
Trace (stripped down to relevant parts IMHO):
Additional note:
The text was updated successfully, but these errors were encountered: