agilix 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/agilix/buzz/commands/authentication.rb +7 -6
- data/lib/agilix/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec7d9aee8506c9686b15b685c051cd43fb3db8b72edfaddcbdf0d4f3762260cc
|
4
|
+
data.tar.gz: 14fa1ea2b89159360bb04ef82939675fe2f6a48ab7e47b7dcff57d157593278c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4607c29b8104360b28bfc9637643396ba7e95f278f4b2c344aa360def4ecbcb004da6201c6cd403bf53812e37da73b01c970b8db2b7b2a6e8b9256bf0a9c233d
|
7
|
+
data.tar.gz: 2be08a5c775adc80ab29681248868d23aeabef96fd20293ad055f07eed160573a30d1d3510379ddc2fdc224f13c75db8483b7eb5131832823149cbb9b0b79d9f
|
@@ -81,10 +81,8 @@ module Agilix
|
|
81
81
|
self.class.new username: response.dig('response', 'user', 'username'), token: response.dig('response', 'user', 'token'), domain: response.dig('response', 'user', 'userspace'), token_expiration: set_token_expiration(response.dig('response', 'user', 'authenticationexpirationminutes'))
|
82
82
|
end
|
83
83
|
|
84
|
-
|
85
|
-
# :skip_test_coverage:
|
86
84
|
# api.proxy_sso_link userid: 57181
|
87
|
-
def proxy_sso_link(userid: )
|
85
|
+
def proxy_sso_link(userid: , redirect_url: "home")
|
88
86
|
response = proxy userid: userid
|
89
87
|
sso = {
|
90
88
|
"customization": {
|
@@ -96,10 +94,13 @@ module Agilix
|
|
96
94
|
}
|
97
95
|
}
|
98
96
|
self.update_domains [ {domainid: response.dig('response', 'user', 'domainid'), data: sso}]
|
99
|
-
|
100
|
-
|
97
|
+
userspace = response.dig('response', 'user', 'userspace')
|
98
|
+
token = response.dig('response', 'user', 'token')
|
99
|
+
# "https://api.leaderinme.net/SSOLogin?domainid=#{response.dig('response', 'user', 'domainid')}&url=/home&token=#{response.dig('response', 'user', 'token')}"
|
100
|
+
if token && userspace
|
101
|
+
"https://#{userspace}.leaderinme.net/login?token=#{token}&url=/#{redirect_url}"
|
102
|
+
end
|
101
103
|
end
|
102
|
-
# :skip_test_coverage:
|
103
104
|
|
104
105
|
# api.reset_lockout userid: 57181
|
105
106
|
def reset_lockout(options = {})
|
data/lib/agilix/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agilix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eggett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05
|
11
|
+
date: 2019-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|