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 support for HTTP Basic Authentication #123

Merged
merged 1 commit into from
Oct 2, 2020
Merged

Add support for HTTP Basic Authentication #123

merged 1 commit into from
Oct 2, 2020

Conversation

robert-s-ubi
Copy link
Contributor

This change adds support for HTTP Basic Authentication to the OCPP-J
client, via two additional JSONConfiguration parameters for username and
password. When both are set, the HTTP Basic Authentication header will
be added to the websocket connect request.

Note that HTTP Basic Authentication transmits username and password
without encryption, so for secure communication, it must be used within
a trusted channel, e.g. a secure websocket connection (WSS) or maybe an
encrypted VPN connection.

This change has originally been prepared by our former colleague:

rtzll@8652108

and has successfully been tested in a plugfest.

This change adds support for HTTP Basic Authentication to the OCPP-J
client, via two additional JSONConfiguration parameters for username and
password. When both are set, the HTTP Basic Authentication header will
be added to the websocket connect request.

Note that HTTP Basic Authentication transmits username and password
without encryption, so for secure communication, it must be used within
a trusted channel, e.g. a secure websocket connection (WSS) or maybe an
encrypted VPN connection.

This change has originally been prepared by our former colleague:

rtzll@8652108

and has successfully been tested in a plugfest.
@codecov-commenter
Copy link

Codecov Report

Merging #123 into master will decrease coverage by 0.06%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #123      +/-   ##
============================================
- Coverage     41.53%   41.47%   -0.07%     
  Complexity      911      911              
============================================
  Files           220      220              
  Lines          4355     4362       +7     
  Branches        437      438       +1     
============================================
  Hits           1809     1809              
- Misses         2438     2445       +7     
  Partials        108      108              

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 42.714% when pulling 72f6ca3 on ubitricity:master into 3b41c63 on ChargeTimeEU:master.

@TVolden
Copy link
Member

TVolden commented Oct 2, 2020

Hi @robert-s-ubi,

Wow thanks for solving this one. The code looks fine. I just want to se the IT test pass (probably my own fault they fail), then I'll merge it.

@TVolden TVolden merged commit 65e792d into ChargeTimeEU:master Oct 2, 2020
@TVolden
Copy link
Member

TVolden commented Oct 2, 2020

Done. Thanks again. It really means allot to me.

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.

4 participants