OneDrive Graph First Authorization error: Object doesn't support property or method 'has'

César 236 Reputation points
2021-05-03T17:06:04.55+00:00

I have a desktop application using MS Graph SDK that asks users to authorize access to their OneDrive accounts, using OAuth. It has worked fine for months, but starting today users are getting an error the first time they are asked to give permissions to my app. The error doesn't show if the account has previously given access to the app.

You can reproduce it trying to sign in in the OneDrive sample app: https://github.com/OneDrive/onedrive-sample-apibrowser-dotnet

I attach a screenshot of the error (in spanish):

93357-graph-error.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,446 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. Ray Carneiro 1 Reputation point Microsoft Employee
    2021-05-05T16:59:02.997+00:00

    I'm facing same issue. I've download this sample (https://github.com/OneDrive/onedrive-sample-apibrowser-dotnet), did all basic configuration and during login attempt it is displaying an error message. ![93999-error.png][1] [1]: /api/attachments/93999-error.png?platform=QnA

    0 comments No comments