nerdexam
Microsoft

70-491 · Question #71

You are developing a Windows Store app. The app will access several web resources that use an OAuth 2.0 authentication provider. You need to recommend in which class to store user credentials so…

The correct answer is D. Windows.Security.Credentials.PasswordVault. The task of storing and retrieving user credentials securely and allowing user credentials roam at no cost with the user's Microsoft account is simplified with the Credential Locker. Storing user credentials in the Credential Locker is a quick, two-step process. 1.Obtain a…

Implement program flow

Question

You are developing a Windows Store app. The app will access several web resources that use an OAuth 2.0 authentication provider. You need to recommend in which class to store user credentials so that users do not have to reenter their credentials when they access the web resources. Which class should you recommend?

Options

  • ASystem.Net.AuthenticationManager
  • BSystem.Net.NetworkCredential
  • CWindows.Security.Credentials.WebAccount
  • DWindows.Security.Credentials.PasswordVault

How the community answered

(40 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    10% (4)
  • D
    83% (33)

Explanation

The task of storing and retrieving user credentials securely and allowing user credentials roam at no cost with the user's Microsoft account is simplified with the Credential Locker. Storing user credentials in the Credential Locker is a quick, two-step process. 1.Obtain a reference to the Credential Locker using the PasswordVault object from the Windows.Security.Credentials namespace. 2.Create a PasswordCredential object that contains an identifier for your app, the username and the password, and pass that to the PasswordVault.Add method to add the credential to the

Topics

#OAuth credentials#PasswordVault#WebAccount#credential storage

Community Discussion

No community discussion yet for this question.

Full 70-491 Practice