emanzione / PATCH

The PATCH repository for issues tracking, wiki and shared material.
https://assetstore.unity.com/packages/tools/utilities/p-a-t-c-h-ultimate-patching-system-41417
MIT License
47 stars 7 forks source link

Unauthorized exception when trying to download a JSON #28

Closed CactusApocalypse closed 3 years ago

CactusApocalypse commented 4 years ago

We use an s3 bucket with authentication, but when trying to download a JSON file using 'DownloadsManager.DownloadString' I get an (401) Unauthorized exception. In the 'FileDownloader' you have the credentials exposed, but the 'DownloadsManager' does not make use of these credentials.

emanzione commented 3 years ago

I exposed the NetworkCredentials for DownloadsManager too. Now you can just inject your credentials in the UpdatingContext object. It will be pushed together with the next release.