aux_helper 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aux_helper.rb +14 -1
- data/lib/aux_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb4a94cae47bb164eb5562d6d67670fb8f4a678f
|
4
|
+
data.tar.gz: f8b9bdb5a3fe8f2a99d26fe9aaf694079c6f289b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b9957aba787b44789c441b22335a131eca4738db3d6614b2ca385fc5bcc8642450006a6faa1d676ee6c63c877b7ba38c0c125917aebc546d59199c227edbc78
|
7
|
+
data.tar.gz: 9b971745c7be5405724521bd9463d7ce698b7a4a011a1cb08c9f0debd63271f9ea2b31ced4cb184b756bb5e58ac0fab970ab9fc6419711b85aa933bd7a5a6ce7
|
data/lib/aux_helper.rb
CHANGED
@@ -135,7 +135,7 @@ module AUXHelper
|
|
135
135
|
def auth_user(auth)
|
136
136
|
return if are_invalid auth
|
137
137
|
# note - differences from 'post': (1) no .to_json (2) return response hash
|
138
|
-
response_json = RestClient.post "#{@api_server.to_s}/v0/users/authenticate", auth, compute_headers(
|
138
|
+
response_json = RestClient.post "#{@api_server.to_s}/v0/users/authenticate", auth, compute_headers(false)
|
139
139
|
response = JSON.parse(response_json)
|
140
140
|
response['response']
|
141
141
|
rescue => e
|
@@ -148,10 +148,23 @@ module AUXHelper
|
|
148
148
|
end
|
149
149
|
|
150
150
|
def get_whitelisted_users(account_id)
|
151
|
+
return if are_invalid account_id
|
151
152
|
# damn... it's broken: return if are_invalid_mongo_key account_id
|
152
153
|
get "#{@api_server.to_s}/v0/users/whitelist/#{account_id}"
|
153
154
|
end
|
154
155
|
|
156
|
+
# Find orgs associated with a domain
|
157
|
+
def get_orgs_by_auth_domain(auth_domain)
|
158
|
+
return if are_invalid auth_domain
|
159
|
+
get "#{@api_server.to_s}/v0/taps?auth_domain=#{auth_domain}"
|
160
|
+
end
|
161
|
+
|
162
|
+
# Find orgs associated with an IdP
|
163
|
+
def get_orgs_by_saml_issuer(issuer)
|
164
|
+
return if are_invalid issuer
|
165
|
+
get "#{@api_server.to_s}/v0/taps?saml_issuer=#{issuer}"
|
166
|
+
end
|
167
|
+
|
155
168
|
# add email address to signup list
|
156
169
|
# returns true if successful
|
157
170
|
def signup_email(email_address)
|
data/lib/aux_helper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aux_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thor-aux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|