exam questions

Exam 70-357 All Questions

View all questions & answers for the 70-357 exam

Exam 70-357 topic 1 question 22 discussion

Actual exam question from Microsoft's 70-357
Question #: 22
Topic #: 1
[All 70-357 Questions]

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. CD
Show Suggested Answer Hide Answer
Suggested Answer: Explanation 🗳️
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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jacclc
Highly Voted 5 years, 5 months ago
Answers: C, D
upvoted 5 times
...
liconnotalo
Most Recent 5 years, 7 months ago
What is the answer?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago