Grnds::Looker::Hmac

Looker message 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']
    }

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

Contributing

  1. Fork it ( https://github.com/[my-github-username]/grnds-looker-hmac/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request