TC_A_01_CSMS — Basic Authentication - Valid username/password combination
TC_A_01_CSMS — Basic Authentication - Valid username/password combination
Source: OCPP 2.0.1 Part 6 — Test Cases (Core & Advanced Security, FINAL, 2023-06-30) — Functional block A. Security, page 327.
Identification
| Field | Value |
|---|---|
| Test case name | Basic Authentication - Valid username/password combination |
| Test case Id | TC_A_01_CSMS |
| Use case Id(s) | A00, B01 |
| Requirement(s) | A00.FR.204, B01.FR.02 |
| System under test | CSMS |
| Functional block | A. Security |
Description
The Charging Station uses Basic authentication to authenticate itself to the CSMS, when using security profile 1 or 2.
Purpose
To verify whether the CSMS is able to validate the (valid) Basic authentication credentials provided by the Charging Station at the connection request.
Prerequisite(s)
The CSMS supports security profile 1 and/or 2
Before (Preparations)
Configuration State:
- The CSMS must have a password configured that equals the configured BasicAuthPassword at the OCTT.
Memory State:
- N/a
Reusable State(s):
- N/a
Main (Test scenario)
| Charging Station | CSMS |
|---|---|
| 1. The OCTT sends a HTTP upgrade request with an Authorization header, containing a username/password combination.; Note(s):; - The Authorization header is formatted as follows: AUTHORIZATION: Basic <Base64 encoded(<Configured ChargingStationId>:<Configured BasicAuthPassword>)> | 2. The CSMS validates the username/password combination AND upgrades the connection to a (secured) WebSocket connection. |
| 3. The OCTT sends a BootNotificationRequest | 4. The CSMS responds with a BootNotificationResponse |
| 5. The OCTT notifies the CSMS about the current state of all connectors. | 6. The CSMS responds accordingly. |
Tool validations
Step 4:
Message: BootNotificationResponse
- status must be Accepted
Post scenario validations
- N/a