question

jay8anks-8375 avatar image
0 Votes"
jay8anks-8375 asked RoyLi-MSFT commented

Windows UWP application user authentication login

Kind of just a general question here. The requirements are a windows program running on a tablet that will be left in a location that may or may not have internet. Users will be logging items removed from this location, which will be used to bill them for said items.

I have a lot of experience with asp.net on the web, with a couple of UWP programs that I managed to "get working." That said, I'm leaning toward another UWP app.

My question is how to get the identity of the person that removes items? Creating a windows account doesn't seem practical. Offline use is an absolute requirement here.

What I have in my head is something like forms authentication for UWP. Even a pseudo-login.

Are there any APIs designed for anything like this for UWP? The only things I find require Internet access and are fairly complicated, like SSO solutions.

My thought is to sync user name/password for the customer into a sqlite db, so they could use the same login for the website...but in the offline case, it isn't really for security so much as just to put a name to a transaction.

And it needs to have some type of session end so that the person isn't still signed in when the next person comes to get something.

Any ideas would be greatly appreciated.

Thanks,









windows-uwp
· 1
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.

@jay8anks-8375 Have you solved your issue? Does Nico's reply make sense?

0 Votes 0 ·

1 Answer

NicoZhu-MSFT avatar image
0 Votes"
NicoZhu-MSFT answered

Hello,
Welcome to Microsoft Q&A!

For this scenario, we suggest your login the app with Windows Hello, you can implement this technology to protect their Universal Windows Platform (UWP) apps and backend services.
For syncing user name/password for the customer into a sqlite db please refer this code sample server part that use to store windows hello public key and user id.


Thank you.



If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.