Credential Locker In Universal Windows Apps

In this article, I am sharing some information on Credential Locker in UWP Apps.

  1. It's an API that is used to store and roam credentials securely (Windows.Security.Credentials).

  2. Since it is roamed across the devices, we don't have to ask users for credentials again on the other devices running the same app.

  3. Benefits: Secure storage,credential isolation and roaming.

  4. Credentials roam across the trusted devices.

  5. Uses public or business cloud according to primary user identity (MSA/AAD(Azure Active directory)).

  6. Scenario: If your app connects to the services like social networking, by asking the user for login information once only, you can store it in the Credential Locker between sessions, in order to provide a good user experience.

  7. Tips:  Avoid large data blocks to store. It is best for saving the passwords.

    Make sure the user has successfully signed in and opted for saving the passwords, before storing them in the Credential Locker.

  8. Sample:

    Sample


Similar Articles