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?

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?

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.



Leave a Reply 1

Your email address will not be published. Required fields are marked *