Share via

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

Anonymous
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?

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

Your answer

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