130k views
1 vote
You are developing an Azure App Service web app that uses the Microsoft Authentication Library for .NET (MSAL.NET). You register the web app with the Microsoft identity platform by using the Azure portal.

You need to define the app password that will be used to prove the identity of the application when requesting tokens from Azure Active Directory (Azure AD).

Which method should you use during initialization of the app?

a. WithCertificate
b. WithClientSecret
c. WithClientId
d. WithRedirectUri
e. WithAuthority

1 Answer

2 votes

Answer: b. WithClientSecret

Explanation: This method sets the application secret used to prove the identity of the application when requesting tokens from Azure Active Directory. WithCertificate is used to set the certificate that is used for the app to authenticate with Azure AD. WithClientId is used to set the client ID of the application, WithRedirectUri is used to set the redirect URI of the application and WithAuthority is used to set the authority to be used for the app's authentication.

User Chetan Gupta
by
8.2k points