looker_embed_sso_examples | Example code to use the Ruby Embed SSO API
kandi X-RAY | looker_embed_sso_examples Summary
kandi X-RAY | looker_embed_sso_examples Summary
looker_embed_sso_examples
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Entry point for testing
- Create a URL for the embed
- Encodes the given string using the HMAC algorithm
looker_embed_sso_examples Key Features
looker_embed_sso_examples Examples and Code Snippets
Community Discussions
Trending Discussions on looker_embed_sso_examples
QUESTION
I am trying to reproduce HMAC signature described here.
The example is using crypt
from nodejs
, however, in my case, I need to use the google closure library. So I tried to reproduce the HMAC signature using the goog.crypt.Hmac
library.
Below are my experiment code.
...ANSWER
Answered 2019-Oct-10 at 06:44- Your goog_crypto function looks right, since the result is identical, albeit represented in base64 vs array of integers (bytes)
- The return value of
getHmac
, i.ehash
in your code, is an array of integers - as documented here ... anarray.toString()
is much the same asarray.join()
- if you want your goog_crypto function to return base64, use nodejs Buffer toString to do the hard work for you
i.e
QUESTION
I'm trying to display a iFrame with Looker SSO, I used looker_sso_tool to generate the Embed URL, and it shows the dashboard I want, however when I try to use the url with a localhost application it shows the error:
Refused to display 'https://xerpabr.looker.com/login' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
I also notice the requested URL from this tool has a Location Response of:
While in localhost it is:
I'm using the node_example of sso embed, just changing the return to display the iFrame, like so:
...ANSWER
Answered 2019-May-28 at 04:45Could you try generating a URL from the tester tool (with preview turned off) and serving that exact URL from localhost? I suspect the problem may be with something in your script, even though you said you didn't change much.
That error is often a bit of a red herring that means your URL isn't authenticating properly— Looker sets x-frame-option headers on the login page that prevent it from being embedded, so if the generated URL doesn't work to log you in and instead redirects to /login, the error can appear. If you take a generated URL from your script and pass it through the Admin > Embed url verification tool, do you get any hints?
You could also try asking over on discourse.looker.com where there's a wealth of Looker experts!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install looker_embed_sso_examples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page