Dataverse Web API authentication

Hey there, I am having issues authenticating a dataverse web api function where I have been getting this error:

HTTP/1.1 401 Unauthorized

With the code I have set up to pull data from a table within the dataverse tenant I have given it an access token which I set up for the environments table through azure AD and registering the app. I was wondering if anyone could help since I cant see an issue with why the authentication method I am using.

How to troubleshoot all Networking, UnityWebRequest, WWW, Postman, curl, WebAPI, etc:

https://discussions.unity.com/t/831681/2

https://discussions.unity.com/t/837672/2

And setting up a proxy can be very helpful too, in order to compare traffic:

https://support.unity.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity

1 Like