Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Unable to embed Oracle Anaytics dashboard on public website — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Unable to embed Oracle Anaytics dashboard on public website

Accepted answer
20
Views
18
Comments
edited Mar 3, 2021 5:51AM in Oracle Analytics 18 comments

Content

We are trying to embed OAC (oracle analytics cloud) graph/canvas on public webpage, we have created an application in IDCS (identity cloud service) and generated client id and client secret, which we encoded in base 64 encoder and generated access token which we used in webpage. Copied the code from OAC dashboard developer option embed section and included it in webpage, but while executing the webpage, we are facing an error saying "AJAX request failed during bootstrap. Request 'https://oac100-bmbriwuhm2ek-bo.analytics.ocp.oraclecloud.com:443/ui/dv/ui/api/v1/sessioninfo/ext'; response:". 

Version

5.9

Code Snippet

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html dir="ltr">
<head>
<title>Oracle Analytics Cloud Embedding Sample</title>

   <script src="https://oac100-bmbriwuhm2ek-bo.analytics.ocp.oraclecloud.com/public/dv/v1/embedding/standalone/embedding.js" type="application/javascript">
</script>
</head>
<body>
<div style="text-align: center">
<h1>Oracle Analytics Cloud Embedding Sample</h1>
</div>
<div style="position: absolute; width: calc(100% — 40px); height: calc(100% — 120px)">
<oracle-dv project-path="/@Catalog/users/[email protected]/Dashboard" active-page="canvas" active-tab-id="2">
</oracle-dv>
</div>


<script>
var token = "eyJ4NXQjUzI1NiI6IldDMjJfQTFtNzVyX0JuczROZzdES1Z1S2x2RjdRaFdQODlxRnA3ZHdrS3ciLCJ4NXQiOiJzQWFWVEJKNmx1eFEwVU1ET1FKaDhBU29nMU0iLCJraWQiOiJTSUdOSU5HX0tFWSIsImFsZyI6IlJTMjU2In0.eyJ1c2VyX3R6IjoiQW1lcmljYVwvQ2hpY2FnbyIsInN1YiI6InZhaWJoYXYuaW5h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liaGF2IEluYW1kYXIiLCJzdWJfbWFwcGluZ2F0dHIiOiJ1c2VyTmFtZSIsInByaW1UZW5hbnQiOnRydWUsInRva190eXBlIjoiQVQiLCJjYV9ndWlkIjoiY2FjY3QtYzE3MjYxMjNmM2NiNDMyNDkxNjkzZWIzMjg3MWNhYzYiLCJhdWQiOlsidXJuOm9wYzpsYmFhczpsb2dpY2FsZ3VpZD1pZGNzLTdjYzIxYTUxMjg3ZjRjNjI4ZTgxMTQzMjlhMzIzNTg2IiwiaHR0cHM6XC9cL2lkY3MtN2NjMjFhNTEyODdmNGM2MjhlODExNDMyOWEzMjM1ODYuaWRlbnRpdHkub3JhY2xlY2xvdWQuY29tIl0sInVzZXJfaWQiOiIwNmQ1NjczZjc4NDk0M2NiYWNjNmVmODJkNTE2OWY0OSIsImNsaWVudEFwcFJvbGVzIjpbIkF1dGhlbnRpY2F0ZWQgQ2xpZW50IiwiQ3Jvc3MgVGVuYW50Il0sInRlbmFudF9pc3MiOiJodHRwczpcL1wvaWRjcy03Y2MyMWE1MTI4N2Y0YzYyOGU4MTE0MzI5YTMyMzU4Ni5pZGVudGl0eS5vcmFjbGVjbG91ZC5jb206NDQzIn0.iokdqTlEpJvNpj920zMY_GoXETdH6qLqdPTntth4iAosdNMZLKMz8cOn-87QDEKYDTyvM3Wa7PwqPZnVlRi236uIrtzr2e6iPloEhzpD-oMWlyg6_8Je2EuhWyzJCITSX4AbcqhBk3Ef0mp6O0eiQK3bKZNtNVhshe2JMmNESMC0z8S9Ll5gKCDTxeyWZuN51sZTBst6uimQ7PCcSHSTK6TaHM014avs-EdFyC8-SwCQiST-268Z8cpywKFR76hRuNqyTXUF_X6Aqs06xafbHDFp7TPxsWJ4eefE1w0nyifNQRIrUpNoR3YAu38hJjEvHwUPcLOmI8folqpfpKS-lw";
  requirejs(['jquery', 'knockout', 'obitech-application/application', 'jet-composites/oracle-dv/loader'],
  function($, ko, application) {
  application.setSecurityConfig("token", {tokenAuthFunction:
  function(){
  return token;
  }
  });
  ko.applyBindings();
  }
  );
</script>
</body>
</html>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!