I'm trying to access files in OneDrive
using Microsoft Graph
api,
In my Azure AD
I gave the following permissions:
And in my application I have the following code:
However when I run the application it's giving me the following error:
Error getting access token: AADSTS70011: The provided value for the input parameter 'scope' is not valid. One or more scopes in 'https://graph.microsoft.com/.default offline_access profile openid' are not compatible with each other.
Even tho I didn't give offline_access profile openid
permissions anywhere else.
Even if I change _scopes
to private string[] _scopes = new string[4]{"User.Read","Files.ReadWriteAll.All","Files.Read","Files.ReadWrite.AppFolder"}
I would still get the same error but "https://graph.microsoft.com/.default"
would be replaced with the above values.