omniauth-nusso 0.1.3 → 0.1.4

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: e757599de93348ccdc6d3976d083df4dc8d90ec12baea6673b5c06a2574e1ac2
4
- data.tar.gz: 1a82a1bfc2e8b8b4b8d478c2a483d24f252c1be9021fdd3af6a29837bab047f5
3
+ metadata.gz: 2ccd09919e30d62e48768a10bad13652bc4800054f4bb9a73259d463a9003977
4
+ data.tar.gz: a0ed9ca04d334f45b5997ab6d3f740f89b30d2f9062b0d70e0a116bd687904ad
5
5
  SHA512:
6
- metadata.gz: 740a50391271b704a5697c05121390d285ad7121bdb2e725a29ed19f87f814d0ca260ce0270d819bb09264d66759716799db4d504b16aa83ded199c5cb1cf544
7
- data.tar.gz: b699a59cff37657de3d141f893a175fbba41fb9a6a8249590d00a2f786f658d695d7781ac7d96675b94df17bf1dd73a53dc37146a4594924aa97af42081b81ea
6
+ metadata.gz: d497393bd227af61e36ce88ebd20f82b82f05f73698a6404ee253be7c2a291d029760e0b345e0f992e0b26fd39eab8e1968fce2d8a79a69ce84c28b2fe65b0b0
7
+ data.tar.gz: 5a340ca81154218b5bc1347dd1d6abd6ce9e1350e98d2bcf4747f4b6442da9c5041ea6b15a22dc504e33a3d84bec6edd3423a822d51ae93c3db0bfd94b2c8f5f
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Nusso
5
- VERSION = '0.1.3'
5
+ VERSION = '0.1.4'
6
6
  end
7
7
  end
@@ -88,7 +88,7 @@ module OmniAuth
88
88
 
89
89
  def get_directory_attributes(token, net_id)
90
90
  response = get("validate-with-directory-search-response", webssotoken: token)
91
- Hash[
91
+ entry = Hash[
92
92
  response['results'].first.map do |k, v|
93
93
  case v
94
94
  when [] then nil
@@ -98,6 +98,7 @@ module OmniAuth
98
98
  end
99
99
  end.compact
100
100
  ]
101
+ netid_user(net_id).merge(entry)
101
102
  rescue AuthException, JSON::ParserError
102
103
  netid_user(net_id)
103
104
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-nusso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brendan Quinn
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-16 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -178,7 +178,7 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
- description:
181
+ description:
182
182
  email:
183
183
  - brendan-quinn@northwestern.edu
184
184
  executables: []
@@ -208,7 +208,7 @@ licenses:
208
208
  metadata:
209
209
  homepage_uri: https://github.com/nulib/omniauth-nusso
210
210
  source_code_uri: https://github.com/nulib/omniauth-nusso
211
- post_install_message:
211
+ post_install_message:
212
212
  rdoc_options: []
213
213
  require_paths:
214
214
  - lib
@@ -223,8 +223,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  - !ruby/object:Gem::Version
224
224
  version: '0'
225
225
  requirements: []
226
- rubygems_version: 3.0.3
227
- signing_key:
226
+ rubygems_version: 3.1.6
227
+ signing_key:
228
228
  specification_version: 4
229
229
  summary: OmniAuth strategy for Northwestern University Agentless SSO.
230
230
  test_files: []