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

Basic auth by HTTPS for API httpds #2533

Closed
Limraj opened this issue May 8, 2023 · 0 comments
Closed

Basic auth by HTTPS for API httpds #2533

Limraj opened this issue May 8, 2023 · 0 comments

Comments

@Limraj
Copy link
Collaborator

Limraj commented May 8, 2023

Description
One of the uses of this api is to connect several Scada-LTS instances, a convenient way to authenticate clients of this api should be added.

Reproduce

  1. Configuration of HTTPS communication for Tomcat
  2. Login as admin;
  3. Create non-admin user as 'httpds_user', set Password: user;
  4. Create Data Source 'HTTP receiver' as rec_ds_1 (enable), and create Data Point as rec_dp_1 ('Data type': numeric, 'HTTP parameter name': temp, enabled);
  5. Create Virtual Data Source as vir_ds_1 (enable, update: 1s), and create Data Point as vir_dp_1 (Change Type: Brownian, min: 1, max: 40, min change: 0.2, start value: 23, enabled)
  6. Create publisher 'Http Sender' as pub_1 (method: GET, url: https://127.0.0.1:8443/ScadaBR/httpds, Credentials: Username: httpds_user, Password: user, enabled)
  7. Click on 'Send static data':
    Screenshot 2023-05-09 at 00 49 56
    if result is '(no response data)' then ok;
  8. Select point 'vir_ds_1 - vir_dp_1' and click 'Add';
  9. Change 'Parameter name' on 'temp', and click in Status column in enable;
  10. Go to 'Watchlists', and create WatchLists as wl_1 with points: 'rec_ds_1 - rec_dp_1', 'vir_ds_1 - vir_dp_1', if both points change simultaneously, it works ok;
@Limraj Limraj added this to the 2.7.5.3 milestone May 8, 2023
Limraj added a commit that referenced this issue May 8, 2023
… configuration - added auth basic for /httpds by https; removed not use PublisherEditDwr.httpSenderTest(); basic auth without generate login event;
Limraj added a commit that referenced this issue May 8, 2023
…TTPS_for_API_httpds

#2533 Basic auth by HTTPS for API httpds - update spring-security.xml…
@Limraj Limraj closed this as completed May 16, 2023
@SCADA-LTS SCADA-LTS deleted a comment from fabiodurao Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant