Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,129 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
'PublicClientApplication' is an ambiguous reference between 'Microsoft.Identity.Client.PublicClientApplication' and 'Microsoft.Graph.PublicClientApplication'
private readonly PublicClientApplication _identityClientApp;
public AuthenticationService(string clientId)
{
if(string.IsNullOrWhiteSpace(clientId))
{
throw new ArgumentNullException("Client id cannot be null or empty", nameof(clientId));
}
ClientId = clientId;
_identityClientApp = new PublicClientApplication(clientId);
GraphClient = GetAuthenticatedClient();
}
/// <summary>
/// get the current application id
/// </summary>
this code is located on github at repositio Onedrive-File-Explorer.
Try to change line 14 with
_identityClientApp = new Microsoft.Identity.Client.PublicClientApplication(clientId);