Skip to content
Advertisement

How can I generate a licensed download link in azure storage blob

I can get a link by those code, and it could download a file successfully.

JavaScript

but everyone could download the file by this link, I want the file could be downloaded by the one who is authorized. Is there any code or azure’s setting(such as AD?) could implement this? Thanks

————————-update————————

I find a doc,and there gives a reason. Note: This method call is only valid when using TokenCredential in this object’s HttpPipeline. but there is only BasicAuthenticationCredential which implements TokenCredential in my imported package. This is my mvn.

JavaScript

And I tried this

JavaScript

then I got this Status code 401, (InvalidAuthenticationInfo)

Gods, help me!

Advertisement

Answer

It looks like there is no way to implement this.

This is the answer.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement