PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the console application can det…

You are developing a Windows console application that uses a third-party C++ library. The console application is designed to be run as an Azure WebJob that has authentication and authorization enabled.
You need to ensure that the console application can determine the current user identity.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Perform an HTTP request to the /.auth/me endpoint.

B.
Call the System.Security.Principal.WindowsIdentity.GetCurrent() method.

C.
Read the X-MS-CLIENT-PRINCIPAL-NAME header.

D.
Read the identity from the UserName environment variable.

5 Comments on “You need to ensure that the console application can det…

  1. perry230 says:

    The Azure WebJob already has authentication and authorization enabled so option A is not needed. The X-MS-CLIENT-PRINCIPAL-NAME value can be read from the ClaimsPrincipal.




    0



    0

Leave a Reply