Skip to content

Commit

Permalink
prevent passing null password
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu committed Feb 6, 2024
1 parent 38e9ee4 commit b544b9d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@ public WebApiConnector(string ipAddress, string userName, string password, bool
IPAddress = ipAddress;
DBName = dbName;
TargetPlatform = platform;

if (ignoreSSLErros)
ServerCertificateCallback.CertificateCallback =
(sender, cert, chain, sslPolicyErrors) => true;

var serviceFactory = new ApiStandardServiceFactory();
Client = serviceFactory.GetHttpClient(ipAddress, userName, password);
Client = serviceFactory.GetHttpClient(ipAddress, userName, password ?? string.Empty);

requestHandler = new ApiHttpClientRequestHandler(Client,
new ApiRequestFactory(ReqIdGenerator, RequestParameterChecker), ApiResponseChecker);

requestHandler.ApiLogout();
requestHandler.ApiLogin(userName, password, true);
requestHandler.ApiLogin(userName, password ?? string.Empty, true);

NumberOfInstances++;
}
Expand Down
120 changes: 60 additions & 60 deletions src/tests.integrations/integrated/src/ax/apax-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,62 +523,6 @@
],
"dependencies": {}
},
"@ax/stc-win-x64": {
"name": "@ax/stc-win-x64",
"version": "6.0.146",
"integrity": "sha512-4hTgmIG54MaWhgxBV8gygU19yilVLfieizhUb08aRXz2o1+YKqd6ifgz1NBAT9RVOgnMj0IJcUynuLo998i1zg==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-win-x64/-/stc-win-x64-6.0.146.tgz",
"os": [
"win32"
],
"cpu": [
"x64"
],
"dependencies": {
"@ax/st-docs": "6.0.146"
}
},
"@ax/stc-linux-x64": {
"name": "@ax/stc-linux-x64",
"version": "6.0.146",
"integrity": "sha512-Cy8psrCe2TB+bCZrCzU4qtPxf0UWzCpdmxOCBC4fEVKnKW6MaBOBt85PAbz6MtAriH4boJY9gMMuPspWlKavPA==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-linux-x64/-/stc-linux-x64-6.0.146.tgz",
"os": [
"linux"
],
"cpu": [
"x64"
],
"dependencies": {
"@ax/st-docs": "6.0.146"
}
},
"@ax/st-ls-win-x64": {
"name": "@ax/st-ls-win-x64",
"version": "3.0.113",
"integrity": "sha512-dPj6b2aRhnelCe0BpIcLMLvHbUj2zhfQOtu4jzdZFDPhKICdB9+fTebuYRmP2vna4ogTke22e6f2buwR6VO1Vw==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/st-ls-win-x64/-/st-ls-win-x64-3.0.113.tgz",
"os": [
"win32"
],
"cpu": [
"x64"
],
"dependencies": {}
},
"@ax/st-ls-linux-x64": {
"name": "@ax/st-ls-linux-x64",
"version": "3.0.113",
"integrity": "sha512-/QUsNMJrMPRVcCrCD7gkw/xl0VvZ8YEJXxQMWGwkWol3JgxiPjWW/fb7EqpzDU+ij45xy85rBdx29MMHQ3Of9Q==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/st-ls-linux-x64/-/st-ls-linux-x64-3.0.113.tgz",
"os": [
"linux"
],
"cpu": [
"x64"
],
"dependencies": {}
},
"@ax/system-strings": {
"name": "@ax/system-strings",
"version": "6.0.94",
Expand Down Expand Up @@ -667,11 +611,60 @@
],
"dependencies": {}
},
"@ax/st-docs": {
"name": "@ax/st-docs",
"@ax/stc-win-x64": {
"name": "@ax/stc-win-x64",
"version": "6.0.146",
"integrity": "sha512-KUs6JC/dWedgnaxH7UrqAOuJm6rKS4gzXTLguqXbtWHKdDKOceIw1yODyjty4iuOm6TkDm2UX4ya6QFC84eBHA==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/st-docs/-/st-docs-6.0.146.tgz",
"integrity": "sha512-4hTgmIG54MaWhgxBV8gygU19yilVLfieizhUb08aRXz2o1+YKqd6ifgz1NBAT9RVOgnMj0IJcUynuLo998i1zg==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-win-x64/-/stc-win-x64-6.0.146.tgz",
"os": [
"win32"
],
"cpu": [
"x64"
],
"dependencies": {
"@ax/st-docs": "6.0.146"
}
},
"@ax/stc-linux-x64": {
"name": "@ax/stc-linux-x64",
"version": "6.0.146",
"integrity": "sha512-Cy8psrCe2TB+bCZrCzU4qtPxf0UWzCpdmxOCBC4fEVKnKW6MaBOBt85PAbz6MtAriH4boJY9gMMuPspWlKavPA==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-linux-x64/-/stc-linux-x64-6.0.146.tgz",
"os": [
"linux"
],
"cpu": [
"x64"
],
"dependencies": {
"@ax/st-docs": "6.0.146"
}
},
"@ax/st-ls-win-x64": {
"name": "@ax/st-ls-win-x64",
"version": "3.0.113",
"integrity": "sha512-dPj6b2aRhnelCe0BpIcLMLvHbUj2zhfQOtu4jzdZFDPhKICdB9+fTebuYRmP2vna4ogTke22e6f2buwR6VO1Vw==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/st-ls-win-x64/-/st-ls-win-x64-3.0.113.tgz",
"os": [
"win32"
],
"cpu": [
"x64"
],
"dependencies": {}
},
"@ax/st-ls-linux-x64": {
"name": "@ax/st-ls-linux-x64",
"version": "3.0.113",
"integrity": "sha512-/QUsNMJrMPRVcCrCD7gkw/xl0VvZ8YEJXxQMWGwkWol3JgxiPjWW/fb7EqpzDU+ij45xy85rBdx29MMHQ3Of9Q==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/st-ls-linux-x64/-/st-ls-linux-x64-3.0.113.tgz",
"os": [
"linux"
],
"cpu": [
"x64"
],
"dependencies": {}
},
"@ax/system-math": {
Expand All @@ -687,6 +680,13 @@
"integrity": "sha512-8xn57nA5NfZ6ImTxmFGvzFp7wLL38JdUgjsuEg+xbzs29e8ftvbTCNqaWMVdX05N4QNAqohq2BlEkIyFtDH8Qg==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/system-datetime/-/system-datetime-6.0.94.tgz",
"dependencies": {}
},
"@ax/st-docs": {
"name": "@ax/st-docs",
"version": "6.0.146",
"integrity": "sha512-KUs6JC/dWedgnaxH7UrqAOuJm6rKS4gzXTLguqXbtWHKdDKOceIw1yODyjty4iuOm6TkDm2UX4ya6QFC84eBHA==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/st-docs/-/st-docs-6.0.146.tgz",
"dependencies": {}
}
},
"workspaces": {}
Expand Down

0 comments on commit b544b9d

Please sign in to comment.