grnds-looker-hmac 0.0.4 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/grnds-looker-hmac.gemspec +3 -3
- data/lib/grnds/looker/hmac.rb +3 -0
- data/lib/grnds/looker/hmac/version.rb +1 -1
- metadata +14 -11
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YTZlZTU3YTRmNWM5ZjZiODc5OTdlNTc4N2FjZWJlYWZlOWJmMGRhNQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f07b7346adf256797cd674e4e46c241f813feb45
|
4
|
+
data.tar.gz: 3a89358521f1095cb543ea7b6a1e49a83fdf81a8
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YzQyYTBmYjc5NTVlNmI4ZmYwOWJlMGM1ZjI1OTQ2YzdkNjA4N2U4YmNiNjE1
|
11
|
-
MTE0MWFkNDRhOGY3OTUxMmU5ODUyZDBhMzA4MjZhNjI4ZDgyYzg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YTQ4YzgxNWEwMWZkMjhjNDkyNjE5NTUwNDQwNzYxMTBjZTkzZWFiNTRmNTBi
|
14
|
-
MWUwNTFmOGQwODQ1NWE1NWRmOGQ4MDAwMGI4Mzg3MTIwM2M3OTZhYmY2ZDYw
|
15
|
-
ZDZhMjJiMzRhNDM0MTBhMGJiMmQ3YjY1OTBiNWVmNmRlN2NhZmM=
|
6
|
+
metadata.gz: fcc369e65399966d2f3bd56470083f331d18e8513bc93a25c72165d2b03c5e2feb5d8ab8d372f7bad4c65ad618525bae28a9f8cbd81ad7f7ab3eaec1e51bfdfa
|
7
|
+
data.tar.gz: 806e3745fd87bd9067a408ded320a8c7c6d89a4b1e4f7da0c804dd648eaae992296069cfb90bb1ccea73ddf8cfc15bf75360fc883897ed838424cc9d16033988
|
data/grnds-looker-hmac.gemspec
CHANGED
@@ -7,9 +7,9 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "grnds-looker-hmac"
|
8
8
|
spec.description = "A simplified URL builder for embedded looker integrations"
|
9
9
|
spec.version = Grnds::Looker::Hmac::VERSION
|
10
|
-
spec.authors = ["Bradley Johnson", "Kenneth Berland"]
|
11
|
-
spec.email = ["brad@grio.com", "
|
12
|
-
spec.date = %q{
|
10
|
+
spec.authors = ["Bradley Johnson", "Kenneth Berland", "Anuja Juvekar", "Rick Cobb"]
|
11
|
+
spec.email = ["brad@grio.com", "rick@grnds.com", "anuja.juvekar@grnds.com"]
|
12
|
+
spec.date = %q{2018-10-10}
|
13
13
|
spec.summary = %q{Generates looker signed urls}
|
14
14
|
spec.homepage = "https://github.com/ConsultingMD/grnds-looker-hmac"
|
15
15
|
spec.license = "MIT"
|
data/lib/grnds/looker/hmac.rb
CHANGED
@@ -25,6 +25,7 @@ module Grnds
|
|
25
25
|
json_permissions = @config[:permissions].to_json
|
26
26
|
json_models = @config[:models].to_json
|
27
27
|
json_access_filters = @config[:filters].to_json
|
28
|
+
json_user_attributes = @config[:user_attributes].to_json
|
28
29
|
|
29
30
|
path = @config[:path_root] + CGI.escape(@config[:embed_path])
|
30
31
|
|
@@ -43,6 +44,7 @@ module Grnds
|
|
43
44
|
string_to_sign += json_external_user_id + "\n"
|
44
45
|
string_to_sign += json_permissions + "\n"
|
45
46
|
string_to_sign += json_models + "\n"
|
47
|
+
string_to_sign += json_user_attributes + "\n"
|
46
48
|
string_to_sign += json_access_filters
|
47
49
|
|
48
50
|
signature = Base64.encode64(
|
@@ -59,6 +61,7 @@ module Grnds
|
|
59
61
|
permissions: json_permissions,
|
60
62
|
models: json_models,
|
61
63
|
access_filters: json_access_filters,
|
64
|
+
user_attributes: json_user_attributes,
|
62
65
|
first_name: json_first_name,
|
63
66
|
last_name: json_last_name,
|
64
67
|
force_logout_login: json_force_logout_login,
|
metadata
CHANGED
@@ -1,53 +1,56 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grnds-looker-hmac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bradley Johnson
|
8
8
|
- Kenneth Berland
|
9
|
+
- Anuja Juvekar
|
10
|
+
- Rick Cobb
|
9
11
|
autorequire:
|
10
12
|
bindir: bin
|
11
13
|
cert_chain: []
|
12
|
-
date:
|
14
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
13
15
|
dependencies:
|
14
16
|
- !ruby/object:Gem::Dependency
|
15
17
|
name: bundler
|
16
18
|
requirement: !ruby/object:Gem::Requirement
|
17
19
|
requirements:
|
18
|
-
- - ~>
|
20
|
+
- - "~>"
|
19
21
|
- !ruby/object:Gem::Version
|
20
22
|
version: '1.6'
|
21
23
|
type: :development
|
22
24
|
prerelease: false
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
24
26
|
requirements:
|
25
|
-
- - ~>
|
27
|
+
- - "~>"
|
26
28
|
- !ruby/object:Gem::Version
|
27
29
|
version: '1.6'
|
28
30
|
- !ruby/object:Gem::Dependency
|
29
31
|
name: rake
|
30
32
|
requirement: !ruby/object:Gem::Requirement
|
31
33
|
requirements:
|
32
|
-
- - ~>
|
34
|
+
- - "~>"
|
33
35
|
- !ruby/object:Gem::Version
|
34
36
|
version: '10.0'
|
35
37
|
type: :development
|
36
38
|
prerelease: false
|
37
39
|
version_requirements: !ruby/object:Gem::Requirement
|
38
40
|
requirements:
|
39
|
-
- - ~>
|
41
|
+
- - "~>"
|
40
42
|
- !ruby/object:Gem::Version
|
41
43
|
version: '10.0'
|
42
44
|
description: A simplified URL builder for embedded looker integrations
|
43
45
|
email:
|
44
46
|
- brad@grio.com
|
45
|
-
-
|
47
|
+
- rick@grnds.com
|
48
|
+
- anuja.juvekar@grnds.com
|
46
49
|
executables: []
|
47
50
|
extensions: []
|
48
51
|
extra_rdoc_files: []
|
49
52
|
files:
|
50
|
-
- .gitignore
|
53
|
+
- ".gitignore"
|
51
54
|
- Gemfile
|
52
55
|
- README.md
|
53
56
|
- Rakefile
|
@@ -64,17 +67,17 @@ require_paths:
|
|
64
67
|
- lib
|
65
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
69
|
requirements:
|
67
|
-
- -
|
70
|
+
- - ">="
|
68
71
|
- !ruby/object:Gem::Version
|
69
72
|
version: '0'
|
70
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
74
|
requirements:
|
72
|
-
- -
|
75
|
+
- - ">="
|
73
76
|
- !ruby/object:Gem::Version
|
74
77
|
version: '0'
|
75
78
|
requirements: []
|
76
79
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
80
|
+
rubygems_version: 2.4.3
|
78
81
|
signing_key:
|
79
82
|
specification_version: 4
|
80
83
|
summary: Generates looker signed urls
|