Home » Microsoft » 70-357 » Which two actions should you perform?
You have to connect your app to an online identity provider that uses OAuth authentication protocol.
The app must securely use the WebAuthenticationBroker object for authentication.
You need to ensure that the app registers with the provider.
Which two actions should you perform? Each correct answer presents part of the solution.
A. Construct a HTTP request URI.
B. Call the GetCurrentApplicationCallbackUri method.
C. Call the AuthenticateAsync method.
D. Construct a HTTPS request URI.
Correct Answer: CD
Explanation/Reference:
The current application callback URI is used as an implicit value of the callbackUri parameter of the AuthenticateAsync method. However, applications need the URI value to add it to the request URI as required by the online provider.
The requestUri parameter must be a HTTPS address: an exception will be thrown if an HTTP address is used, even for local testing scenarios.
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.security.authentication.web.webauthenticationbroker