ONE DRIVE BROWSER SAMPLE

Giorgio Sfiligoi 126 Reputation points
2021-06-02T09:37:05.443+00:00

I have problems trying to run the OneDrive API Browser Sample - https://github.com/OneDrive/onedrive-sample-apibrowser-dotnet
I loaded it in VS19, I upgraded the MicrosoftGraph and Microsoft.Identity, then I had to set the code for .NET 4.7.2; compiles OK.
I tried to register the program in the Azure portal, although the instructions do not match with the current format of the portal.
I run the program and sign-in; after inserting the credentials of my MS account I get the following message:

OneDrive reported the following error: The request is not valid for the application's 'userAudience' configuration. In order to use /common/ endpoint, the application must not be configured with 'Consumer' as the user audience. The userAudience should be configured with 'All' to use /common/ endpoint.

Neither in the code nor in the Azure portal I have been able to find any reference to 'userAudience' so I am stuck.
Can anybody help?

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,653 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,448 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,035 questions
0 comments No comments
{count} votes