SmartGridready / SGrJava

SmartGridready communication handler in Java
Other
0 stars 0 forks source link

SGrRestApiDevice do not add authorization header null #112

Closed ergo-furrer closed 1 month ago

ergo-furrer commented 1 month ago

Currently SGrRestApiDevice adds a http-header 'Authorization: null' when no 'NoSecurityScheme' is selected within the EI-XML.

This can lead to problems with web-service endpoints such as the swisspower tariff endpoint or when adding pre-shared bearer token as header in the EI-XML directly:

The 'Authorization' header is then added twice: Authorization: Bearer Authorization: Bearer null

TODO: avoid adding 'Authorization: Bearer null'.