question

vanjmali avatar image
0 Votes"
vanjmali asked RoyLi-MSFT commented

Quick login for Desktop Windows apps

Would it be possible to for a .NET Windows app such as UWP to have access to display list of connected accounts on Windows PC?
That could be like a quick list to login faster in the app instead of need to re-type the Microsoft email, kind of like it already does for web version.

windows-uwpwindows-forms
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What is the connected account that you mentioned? And I'm confused about login faster in the app, you are using Microsoft account to log in to your app?

0 Votes 0 ·

My bad. I meant similar to web OAtuh2, where if you have already logged in previously it will ask you to pick an account with another option to use another account.
But, instead of web, it would display list of Microsoft accounts that are connected on user's Windows PC (Settings > Accounts) with the same option to use another account.

0 Votes 0 ·

I still have a question, could you please be more specific about what you want to achieve? Are you using Microsoft accounts to log in to your app? Or do you want to get the users of the system?

0 Votes 0 ·
Show more comments

1 Answer

karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered

Questions, what account types are possible besides a homebrew for the application and Windows (thinking the user has only one account at a time even though they may have several e.g. a PA account and regular account). Then how were you think about defaulting to “Use this account”.

Thinking you have done research which lead to asking this question I would recommend a hybrid solution which would not have “Use this account” but other for instance sign in with user name/password or say email address and password etc.

You can check out How to prompt for a password on Windows? which requires access to the web and a free NuGet package.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.