-
Notifications
You must be signed in to change notification settings - Fork 47
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
base: master
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and python
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)