Skip to content

rbob86/simple-signed-url-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Signed URL Embed Demo

Overview

This TypeScript-based web app contains a backend server for generating a signed embed URL via the Looker API that is used to initially authenticate a user loading embedded content with Looker. The front end, leveraging the Looker Embed SDK, will call the appropriate backend endpoints and use the responses to embed a Looker dashboard (or explore, look, or extension).

A simple cookieless SSO embed demo can be found here.

Installation

Backend

  1. cd backend
  2. npm install to install dependencies
  3. Create .env file with the following properties representing API credentials to your Looker instance:
LOOKERSDK_API_VERSION=4.0
LOOKERSDK_BASE_URL=[Looker instance url]
LOOKERSDK_CLIENT_ID=[API key]
LOOKERSDK_CLIENT_SECRET=[API secret]
  1. In backend/app.ts, update the params variable in the /api/signed-url-for-embed route to match your Looker setup, including the models property.
  2. npm run dev to run backend

Frontend

  1. cd frontend
  2. npm install to install dependencies
  3. npm run dev to run frontend
  4. In frontend/src/main.ts, change instanceUrl to your target Looker instance and dashboardId to a valid dashboard in your Looker instance.
  5. Ensure frontend URI (e.g. http://localhost:5173) is added to Admin > Embed > Embedded Domain Allowlist in your Looker instance to allow JS events to work cross-domain.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published