|
@@ -168,6 +168,7 @@ public class OcppWebsocketService : WebsocketService<WsClientData>
|
|
|
if (context.RequestAborted.IsCancellationRequested) return false;
|
|
|
if (string.IsNullOrEmpty(configVaule))
|
|
|
{
|
|
|
+ logger.LogInformation("{id} {func} security profile not set", context.TraceIdentifier, nameof(ValidateHandshake));
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -180,6 +181,7 @@ public class OcppWebsocketService : WebsocketService<WsClientData>
|
|
|
if (session.ISOCPP20)
|
|
|
{
|
|
|
|
|
|
+ logger.LogInformation("{id} {func} {securityProfile} is ocpp20", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
securityProfile = 0;
|
|
|
}
|
|
|
|
|
@@ -199,7 +201,7 @@ public class OcppWebsocketService : WebsocketService<WsClientData>
|
|
|
{
|
|
|
if (securityProfile == 2 && session.UriScheme == "ws")
|
|
|
{
|
|
|
- logger.LogInformation("{id} {func} {securityProfile} auth failed", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
+ logger.LogInformation("{id} {func} {securityProfile} connection unsecured", context.TraceIdentifier, nameof(ValidateHandshake), securityProfile);
|
|
|
context.Response.StatusCode = StatusCodes.Status401Unauthorized;
|
|
|
return false;
|
|
|
}
|