Question: You must connect an app to an online identity provider using OAuth. For authentication, the app uses WebAuthenticationBroker object. You need to make sure the app registers with the provider. Which action do you take?

  1. Construct an HTTP request URI and an HTTPS request URI.
  2. Invoke the GetCurrentApplicationCallbackUri method and construct an HTTPS request URI.
  3. Invoke the AuthenticateAsync and GetCurrentApplicationCallbackUri methods.
  4. Invoke the AuthenticateAsync method and construct an HTTPS request URI.

Answer: The correct answer of the above question is Option D:Invoke the AuthenticateAsync method and construct an HTTPS request URI.