1
votes

I have some static websites hosted on Azure Blob Storage and I want to grant access to those websites only for authenticated users from an ASP.NET MVC application.

I can't have the Blob Storage public. I think I cannot use Shared Access Signatures taking in consideration that the website uses lots of javascript, css that are downloaded automatically by the main .htm page.

What's the best solution in this case?

1

1 Answers

0
votes

If the permissions from your application must be checked then you can build a controler in your application that will act as a proxy between client and blob storage. No Shared Signatures, only regular blob keys on and your regular authentication for users.

The action takes the url relative to your blob as argument. You can add a custom route so is nicely handle links you can make inside your static website.