OneDrive File Picker v8 - exception Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException when accessing shared library

Lukasz GAWLIK 0 Reputation points
2023-03-31T15:23:08.78+00:00

When trying to open shared library using OneDrive File Picker v8, there is an exception: Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException'. Problem can be reproduced by javascript-basic example after some adjustments:

  • in configuration set sharedLibraries: true
  • in auth.js add handling of authentication with command.type = "ms-graph"

It looks like FilePicker is not sending command "authenticate" to the parent window, for providing correct access_token for the resource which is the shared library.

Please clarify if in such a case, OneDrive picker should send correct "authenticate" command to parent window? Or maybe there is other reason for such a problem?

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,142 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.