You are developing a C# desktop application that needs to authenticate users against Microsoft Entra ID using the Microsoft Identity Platform.
Which two components from the Microsoft.Identity.Client namespace must you use to configure and represent the client application?
Select two.
- PublicClientApplicationBuilderCevap
- BConfidentialClientApplicationBuilder
- IPublicClientApplicationCevap
- DIConfidentialClientApplication
Cevap
The application must use PublicClientApplicationBuilder to configure the application and IPublicClientApplication to represent the instantiated client application.
For a desktop application, which cannot securely store client secrets, you must use a public client flow. In MSAL.NET, public client applications are configured using the PublicClientApplicationBuilder and represented by the IPublicClientApplication interface.
Adım Adım Çözüm
Anahtar Kavram
Identifying MSAL client types and initializing MSAL.NET public client applications.