omniauth-nusso 0.1.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/console +2 -1
- data/lib/omniauth/nusso/version.rb +1 -1
- data/lib/omniauth/strategies/nusso.rb +3 -3
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ccd09919e30d62e48768a10bad13652bc4800054f4bb9a73259d463a9003977
|
4
|
+
data.tar.gz: a0ed9ca04d334f45b5997ab6d3f740f89b30d2f9062b0d70e0a116bd687904ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d497393bd227af61e36ce88ebd20f82b82f05f73698a6404ee253be7c2a291d029760e0b345e0f992e0b26fd39eab8e1968fce2d8a79a69ce84c28b2fe65b0b0
|
7
|
+
data.tar.gz: 5a340ca81154218b5bc1347dd1d6abd6ce9e1350e98d2bcf4747f4b6442da9c5041ea6b15a22dc504e33a3d84bec6edd3423a822d51ae93c3db0bfd94b2c8f5f
|
data/bin/console
CHANGED
@@ -3,13 +3,14 @@
|
|
3
3
|
|
4
4
|
require 'bundler/setup'
|
5
5
|
require 'omniauth/nusso'
|
6
|
+
require 'pry'
|
6
7
|
|
7
8
|
# You can add fixtures and/or initialization code here to make experimenting
|
8
9
|
# with your gem easier. You can also use a different console, if you like.
|
9
10
|
|
10
11
|
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
12
|
# require "pry"
|
12
|
-
|
13
|
+
Pry.start
|
13
14
|
|
14
15
|
require 'irb'
|
15
16
|
IRB.start(__FILE__)
|
@@ -3,7 +3,6 @@
|
|
3
3
|
require 'faraday'
|
4
4
|
require 'json'
|
5
5
|
require 'omniauth'
|
6
|
-
require 'pry'
|
7
6
|
|
8
7
|
module OmniAuth
|
9
8
|
module Strategies
|
@@ -89,7 +88,7 @@ module OmniAuth
|
|
89
88
|
|
90
89
|
def get_directory_attributes(token, net_id)
|
91
90
|
response = get("validate-with-directory-search-response", webssotoken: token)
|
92
|
-
Hash[
|
91
|
+
entry = Hash[
|
93
92
|
response['results'].first.map do |k, v|
|
94
93
|
case v
|
95
94
|
when [] then nil
|
@@ -99,7 +98,8 @@ module OmniAuth
|
|
99
98
|
end
|
100
99
|
end.compact
|
101
100
|
]
|
102
|
-
|
101
|
+
netid_user(net_id).merge(entry)
|
102
|
+
rescue AuthException, JSON::ParserError
|
103
103
|
netid_user(net_id)
|
104
104
|
end
|
105
105
|
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.
|
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:
|
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.
|
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: []
|