Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Is it possible to authenticate to apps registered with AAD v2 for PowerBI via MSAL or ADAL?
It would be great if we get any sample code.
Regards,
Yasotha
@Yaostha wrote:
Hi,
Is it possible to authenticate to apps registered with AAD v2 for PowerBI via MSAL or ADAL?
It would be great if we get any sample code.
Regards,
Yasotha
Don't know much about AAD v2, hope those threads help.
Hi @Eric_Zhang,
Thanks for the reply.
Now I got another doubt.
How do we get the Microsoft.PowerBI.Api.V2.Models.EmbedToken generated using powerbi javascript? Is it possible?
I have below code in my .cs file. I am looking to replace the same using javascript approach.
using (var client = new PowerBIClient(new Uri(ApiUrl), tokenCredentials))
{
// Generate Embed Token.
var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view");
var tokenResponse = await client.Dashboards.GenerateTokenInGroupAsync(GroupId, DashboardId, generateTokenRequestParameters);
}
Regards,
Yasotha
@Yaostha wrote:
Hi @Eric_Zhang,
Thanks for the reply.
Now I got another doubt.
How do we get the Microsoft.PowerBI.Api.V2.Models.EmbedToken generated using powerbi javascript? Is it possible?
I have below code in my .cs file. I am looking to replace the same using javascript approach.
using (var client = new PowerBIClient(new Uri(ApiUrl), tokenCredentials))
{// Generate Embed Token.
var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view");
var tokenResponse = await client.Dashboards.GenerateTokenInGroupAsync(GroupId, DashboardId, generateTokenRequestParameters);}
Regards,
Yasotha
Just call the API GenerateToken in Javascript API or JQuery.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |