How to Authenticate .NET Core Applications with Dataverse Using OAuth 2.0?
Table of Contents
Question
You are building a .NET Core console application to access Microsoft Dataverse table data.
You plan to use methods from the Organization service.
You need to authenticate by using OAuth 2.0.
Which two options should you use? Each correct answer presents part of the solution. Choose two.
Select all answers that apply.
A. XrmTooling
B. ServiceClient
C. CrmServiceClient
D. Microsoft.Identity.Web
E. Microsoft Authentication Library (MSAL)
Answer
B. ServiceClient
E. Microsoft Authentication Library (MSAL)
Explanation
This item tests the candidate’s knowledge of performing authentication by using OAuth 2.0.
Applications that use .NET Core with the Organization service use the ServiceClient built-in authentication and Microsoft Authentication Library for authenticating with OAuth 2.0. The CrmServiceClient is used with the .NET Framework. XrmTooling does not support .NET Core. The Microsoft Identity Web library is used for web applications, not for desktop console applications.
Microsoft Power Platform Developer PL-400 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Power Platform Developer PL-400 exam and earn Microsoft Power Platform Developer PL-400 certification.