Skip to content

Commit

Permalink
Bugfix opcclient with user anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
aorzelskiGH committed May 28, 2020
1 parent 388c26a commit 20ba216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AasxServerStandardBib/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ static Boolean ReadOPCClient(bool initial)
if (Username == "" && Password == "")
{
Console.WriteLine("Using Anonymous to login ...");
return false;
// return false;
}

// try to get the client from dictionary, else create and add it
Expand Down
2 changes: 1 addition & 1 deletion AasxServerStandardBib/UASampleClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public async Task ConsoleSampleClient()
var endpointConfiguration = EndpointConfiguration.Create(config);
var endpoint = new ConfiguredEndpoint(null, selectedEndpoint, endpointConfiguration);

if (userName == "" && password != "")
if (userName == "" && password == "")
{
session = await Session.Create(config, endpoint, false, "OPC UA Console Client", 60000, new UserIdentity(new AnonymousIdentityToken()), null);
}
Expand Down

0 comments on commit 20ba216

Please sign in to comment.