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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62e0a47d865172b276fe66e6668293c09c91345aba87d6fea238439ed9189325
4
- data.tar.gz: e3494ff0f870b175308c74ff5bea5fbae4629f69b7f99b0935e1be5fb29707fe
3
+ metadata.gz: ec7d9aee8506c9686b15b685c051cd43fb3db8b72edfaddcbdf0d4f3762260cc
4
+ data.tar.gz: 14fa1ea2b89159360bb04ef82939675fe2f6a48ab7e47b7dcff57d157593278c
5
5
  SHA512:
6
- metadata.gz: faa776508b61013223110a30083ad1bb85cf22d5f239228390ee1012864912f01e72ff8afa601b4c9f81116afc54d915077e1830f62797ddc2d243397a3b11af
7
- data.tar.gz: 74ec95d50534648bce2e564c75b0ec804f6d1eff764c9fe99bcb6fa7b12dd17492ba3f9775344ab3b92daea22f04c6cd55dc57016f3b83e037589794181e5165
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
- # userspace = response.dig('response', 'user', 'userspace')
100
- "https://api.leaderinme.net/SSOLogin?domainid=#{response.dig('response', 'user', 'domainid')}&url=/home&token=#{response.dig('response', 'user', 'token')}"
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 = {})
@@ -1,3 +1,3 @@
1
1
  module Agilix
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
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.7.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-09 00:00:00.000000000 Z
11
+ date: 2019-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler