0

I have created a PowerBI report with embedded videos using the HTML customer visual. The videos are hosted on an Azure Blob Storage so I have generated a SAS token that I have added to the video URL in my data.

However, I would look to increase the security of Blob Storage and find a better solution to avoid having a SAS token out there for everyone to use and with limited control over.

For example, would it be possible to access a token provider that would generate an access token on the fly if a set of credentials is correct? This way, I would be able to control the access to the videos.

I looked into Shared Access Signature but was not able to implement it from PowerBi. Any other ideas are welcome!

1 Answer 1

0

I tried to reproduce the same in my environment and got the results like below:

To avoid a SAS token accessible to everyone, try generating the access token by specifying user's IP address or IP Range who are allowed to access:

enter image description here

If the user's IP address is not in the range, the user will get the below error while accessing the SAS URL:

enter image description here

Would it be possible to access a token provider that would generate an access token on the fly if a set of credentials is correct.

You can make use of Authorization-Code Flow to generate the access token which will ask for the Users interaction while generating the token.

Make use of the below Parameters to generate the access token:

GET https://login.microsoftonline.com/TenantID/oauth2/v2.0/token

 

client_id:ClientID
client_secret:*****
grant_type:authorization_code
scope:scope
redirect_uri:redirect_uri
code:code

A sign-in screen will appear to validate the Users credentials:

enter image description here

Access token got generated successfully like below:

enter image description here

2
  • Thank you for your reply, the Authorization-Code Flow looks like what I am looking for: I have been looking into it, but I was wondering where/how you are implementing the Parameters code to generate the Access token in PowerBI ? Thank you so much for your help.
    – Charlotte
    Commented Dec 13, 2022 at 12:26
  • Kindly check this ref1 & ref2
    – Imran
    Commented Dec 13, 2022 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.