Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
ConsultingMDPublic archive

About

Simple way of constructing the secure URL necessary to access Looker as an embedded iFrame and have the appropriate filters, etc., set up from a security standpoint.

Topics

Resources

Stars

1 star

Watchers

11 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Grnds::Looker::Hmac

A simple looker.com authentication code helper for Grandrounds

Installation

Add this line to your application's Gemfile:

gem 'grnds-looker-hmac'

And then execute:

$ bundle

Or install it yourself as:

$ gem install grnds-looker-hmac

Usage

#first set your LOOKER_EMBED_SECRET env var

config = {
  :host => 'grandroundsstage.looker.com',
  :embed_path => '/embed/sso/dashboards/uat/uat_01',
  :path_root => '/login/embed/',
  :external_user_id => '57',
  :first_name => 'Kenneth',
  :last_name => 'Berland',
  :permissions => ["see_dashboards", "see_looks", "access_data"],
  :models => ['uat'],
  :session_length => 1.day.to_i,
}

signer = Grnds::Looker::Hmac::SignedUrlGenerator.new(config)
signedUrl = signer.getUrl

About

Simple way of constructing the secure URL necessary to access Looker as an embedded iFrame and have the appropriate filters, etc., set up from a security standpoint.

Topics

Resources

Stars

1 star

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages