Hi Jon Osmanson,
To securely access files and assets in an Azure Blob container, especially for SCORM courses, you can use Azure's role-based access control with Microsoft Entra ID. This method provides more granular control and avoids the issues you are facing with SAS tokens and relative paths.
Steps to Securely Access Files in Azure Blob Storage
Set Up Microsoft Entra ID Authentication:
- Create a Security Principal: This can be a user, group, or service principal.
- Assign Roles: Use Azure RBAC to assign appropriate roles (e.g.,
Storage Blob Data Reader
) to the security principal .
Configure Blob Storage:
- Enable Microsoft Entra ID Authentication: Ensure your storage account supports Microsoft Entra ID. This is available for all general-purpose and Blob storage accounts.
- Assign Permissions: Assign the necessary roles to your security principal to access the blob data .
Accessing Blob Data:
- Generate OAuth 2.0 Token: Authenticate the security principal to get an OAuth 2.0 token.
- Use the Token: Include this token in the authorization header of your HTTP requests to access the blob data.
For more information:
https://learn.microsoft.com/en-us/azure/storage/blobs/security-recommendations
https://learn.microsoft.com/en-us/azure/storage/blobs/authorize-access-azure-active-directory
Alternative Methods: If you prefer to continue using SAS tokens, consider using User Delegation SAS tokens, which are secured with Microsoft Entra credentials instead of the account key, this method can help mitigate some of the issues with relative paths.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, __this can be beneficial to other community members.
__
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be glad to assist you.