Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flesh out readme a bit more #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Flesh out readme a bit more #17

wants to merge 1 commit into from

Conversation

dthorpe
Copy link
Contributor

@dthorpe dthorpe commented Oct 16, 2019

Add link to the underlying repo (for folks like me who had difficulty figuring out how to get from the doc content to the actual repo)

Add link to the underlying repo (for folks like me who had difficulty figuring out how to get from the doc content to the actual repo)

```html
src=https://looker.example.com:443/embed/dashboards/11?sdk=2&embed_host=https://yourhost.example.com
src=https://looker.example.com:443/embed/dashboards/11?param=data&etc=etc&signature=ADSFWE$WEDASDFWE#WSADS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong direction. The is the URL to be signed, not the signed URL. It will now look like /embed/dashboards/11?param=data&etc=etc because of the lack of fully qualified embed URLs now.

### Web App Setup
The Looker Embed SDK is a JavaScript module that lives and runs in the browser with your web app.

The demo also includes a reference implementation of the Looker SSO embed URL signature algorithm as a NodeJS web server module. The URL signature is used to secure and authenticate the embed URL request on the Looker server.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a python demo server as well.


The demo also includes a reference implementation of the Looker SSO embed URL signature algorithm as a NodeJS web server module. The URL signature is used to secure and authenticate the embed URL request on the Looker server.

The instructions and demo web app shown below assume that the Looker Embed SDK is built into your web app using the included webpack build configuration. If your web app doesn't use the webpack stack, you can build the Embed SDK into a javascript module and then reference that module from your web app HTML.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't assume Webpack. It's a UMD format module that should work with most Javascript module toolchains.

```

### Node helper

A signing helper method `createSignedUrl()` is provided in
[server_utils/auth_utils.ts](blob/master/demo/demo_config.ts). Its usage is as follows:
This Embed SDK includes a reference implementation of the required URL signing algorithm in a NodeJS server module. The signing function is `createSignedUrl()` in file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants