access 2.1.5 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/access/api.rb +12 -0
- data/lib/access/user.rb +8 -0
- data/lib/access/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: cf3730e91cc2fbaa4500da1437973dfed39c3aee
|
4
|
+
data.tar.gz: faa4b94e5c7ccdd0d1925e05885a07a7b202df07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd674087500bdf6894f9d09fe284564776c924268106d29155515e333e591b599aafad1965b3a44c543dad19b9f87340a63a0c5b907057adaa9f82b68ecabb5e
|
7
|
+
data.tar.gz: a003d323e4c9807ffa050fec7d6287ed6d61684c1998d548bb4e8bfeff6defa8c80d7798b7545f82f77693c7c98466a36f1d8b885c3f6a4be6a807b5351a437f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
access (2.
|
4
|
+
access (2.2.0)
|
5
5
|
hashie (~> 3.3.1)
|
6
6
|
httparty (~> 0.13.3)
|
7
7
|
|
@@ -55,7 +55,7 @@ GEM
|
|
55
55
|
minitest (5.8.4)
|
56
56
|
minitest-focus (1.1.2)
|
57
57
|
minitest (>= 4, < 6)
|
58
|
-
multi_xml (0.
|
58
|
+
multi_xml (0.5.5)
|
59
59
|
nenv (0.2.0)
|
60
60
|
netrc (0.11.0)
|
61
61
|
notiffany (0.0.8)
|
@@ -113,4 +113,4 @@ DEPENDENCIES
|
|
113
113
|
webmock
|
114
114
|
|
115
115
|
BUNDLED WITH
|
116
|
-
1.
|
116
|
+
1.13.6
|
data/lib/access/api.rb
CHANGED
@@ -183,6 +183,18 @@ module Access
|
|
183
183
|
end
|
184
184
|
end
|
185
185
|
|
186
|
+
def user_external_authentication(options = {})
|
187
|
+
request.post("/external-auth", "mms", options) do |response|
|
188
|
+
UserResponse.new(response)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
def user_external_authentication_by_token(options = {})
|
193
|
+
request.get("/external-auth", "mms", options) do |response|
|
194
|
+
UserResponse.new(response)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
186
198
|
# Member
|
187
199
|
def member_show(member_key, options = {})
|
188
200
|
request.get("/members/#{member_key}", 'mms', options) do |response|
|
data/lib/access/user.rb
CHANGED
@@ -32,5 +32,13 @@ module Access
|
|
32
32
|
Access::Api.new.user_authentication_by_member_key options
|
33
33
|
end
|
34
34
|
|
35
|
+
def self.external_authenticate(options = {})
|
36
|
+
Access::Api.new.user_external_authentication options
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.external_authenticate_by_token(options = {})
|
40
|
+
Access::Api.new.user_external_authentication_by_token options
|
41
|
+
end
|
42
|
+
|
35
43
|
end
|
36
44
|
end
|
data/lib/access/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: access
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eggett
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-07-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|