Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

232
Visualizações
How can i, using API, retrieve all PowerBI apps with links using a frontend javascript application?

PowerBI has a good API, but i probably making a mistake with the flow to retrieve data from it.

What we need to do:

  1. Get Power BI apps listed in a menu.
  2. With the menu, when a user click on a app link, the app should render on an iframe.

What we got so far:

  1. We can call the oauth and generate tokens to interact with the API.
  2. We can call the API and retrieve results.

The problems we're facing:

  1. Lack of security to generate the token. We shouldn't make APPLICATION_ID and APPLICATION_SECRET available to frontend by security reasons. A better solution could be generate the application links using a backend for that, but this is not desirable by our deploy requirements.
  2. We're facing issues related to CSP.iframe with source to the app Refused to frame 'https://app.powerbi.com/' because it violates the following Content Security Policy directive: "child-src 'none'". Note that 'frame-src' was not explicitly set, so 'child-src' is used as a fallback.

Example code (not the real code. just a draft):

var apps = [];
var APPLICATION_ID = "NOT INFORMED HERE";

axios.get("POWERBI URL").then(function(result) {
    result["values"].forEach((item) => {
        apps.push({id:item.id, name:item.name, link:`https://app.powerbi.com/Redirect?action=OpenApp&appId=${item.id}&ctid=${APPLICATION_ID}`})
    });
});

Any idea of how can we get this done considering security and front-end only approach?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda