azure-devops-dotnet-samples icon indicating copy to clipboard operation
azure-devops-dotnet-samples copied to clipboard

How to always display the sign-in prompt and do not remember password.

Open fuine6 opened this issue 6 years ago • 0 comments

I use the code to display sign-in prompt, and it will automatically remember the account and password.

VssCredentials creds = new VssClientCredentials();
creds.Storage = new VssClientCredentialStorage();
VssConnection connection = new VssConnection(new Uri(collectionUri), creds);
await connection.ConnectAsync();

When I use creds.Storage.RemoveToken api, it will display sign-in prompt again, but user can choice the account to login without enter password again. i1

My application is on a public computer, I hope not to remember password and enter every time. How can I do it?

fuine6 avatar Oct 23 '19 07:10 fuine6