Keeper-Security/keeper-sdk-dotnet

ConsoleAutUI.cs

mjohl opened this issue · 4 comments

mjohl commented

The code does not work and goes into an infinite loop for the WaitForUserPassword method.
The older AuthUI.cs that wrapped that return in a task worked fine.

Do you use ConsoleAuthUI.cs in your application?
Does Commander sample app do the same?

mjohl commented

I believe the problem to be the await InvokePasswordActionDelegate(password)., What is that supposed to do inorder for the while loop to exit?

Either empty or valid password exits that loop.

Empty password cancels login session
if (string.IsNullOrEmpty(password)) return false;

Valid password breaks the loop.
try
{
await info.InvokePasswordActionDelegate(password);
break;
}
...
return true;

no response from the customer