Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simplified URL builder for embedded looker integrations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
~> 10.0
 Project Readme

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