unity3dazure / storageservices Goto Github PK
View Code? Open in Web Editor NEWAzure Blob Storage for Unity
Home Page: https://www.deadlyfingers.net/tutorial/unity3d-and-azure-blob-storage
License: MIT License
Azure Blob Storage for Unity
Home Page: https://www.deadlyfingers.net/tutorial/unity3d-and-azure-blob-storage
License: MIT License
It would be really cool if you could use a SAS token (generated elsewhere) instead of storing the account key in the application.
I have a backend where I generate SAS tokens but I don't really know what to do with them, so that's pretty much the functionality I am asking for :)
Upon downloading an image from Azure storage successfully, other querys stop working with the error:
An error occurred while sending the requestSystem.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: TrustFailure (One or more errors occurred.) ---> System.AggregateException: One or more errors occurred. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Mono.Security.Interface.TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: UNITYTLS_X509VERIFY_FATAL_ERROR
at Mono.Unity.Debug.CheckAndThrow (Mono.Unity.UnityTls+unitytls_errorstate errorState, Mono.Unity.UnityTls+unitytls_x509verify_result verifyResult, System.String context, Mono.Security.Interface.AlertDescription defaultAlert) [0x00036] in <60233c34ef3e4e5f892759dbfc5ae27d>:0
at Mono.Unity.UnityTlsContext.ProcessHandshake () [0x00075] in <60233c34ef3e4e5f892759dbfc5ae27d>:0
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status) [0x0003e] in <60233c34ef3e4e5f892759dbfc5ae27d>:0
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus)
at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in <60233c34ef3e4e5f892759dbfc5ae27d>:0
at Mono.Net.Security.AsyncProtocolRequest+d__24.MoveNext () [0x000ff] in <6
Would it be possible to get more insight into this?
Is this even possible at this point? I would like to do something like upload a few images at one go to blob storage instead of requesting once for every single image.
Ideally SAS tokens should be generated by client to request private blobs:
https://docs.microsoft.com/en-us/azure/storage/common/storage-dotnet-shared-access-signature-part-1
Hi,
These seem to be supported on API version 2015-02-21 and later.
It would be great if this new method could be added.
Thx
AuthenticationFailed
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:85f41450-901e-002a-33a4-14553a000000
Time:2018-07-05T21:09:46.9683350ZThe MAC signature found in the HTTP request 'JTS6K4SeTm3KC/IVPOa6b5ejmfA590xr+qR+yehQdTA=' is not the same as any computed signature. Server used following string to sign: 'PUT
2
image/png
x-ms-blob-content-disposition:attachment; filename="18-07-05-21-09-44-30.png"
x-ms-blob-type:BlockBlob
x-ms-date:Thu, 05 Jul 2018 21:09:46 GMT
x-ms-version:2017-04-17
/unityazureblobst/blobunity/18-07-05-21-09-44-30.png'.
UnityEngine.Debug:LogError(Object)
Log:Text(Text, String, String, Level) (at Assets/Utilities/Log.cs:30)
ImageDemo:PutImageCompleted(RestResponse) (at Assets/Demos/Image/ImageDemo.cs:85)
RESTClient.RestRequest:GetText(Action1, Boolean) (at Assets/Dependencies/RESTClient/http/RestRequest.cs:282) RESTClient.RestRequest:Result(Action
1) (at Assets/Dependencies/RESTClient/http/RestRequest.cs:269)
Azure.StorageServices.c__IteratorA:MoveNext() (at Assets/Dependencies/StorageServices/BlobService.cs:132)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.