omniauth-polaris 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/polaris/adaptor.rb +3 -3
- data/lib/omniauth/polaris/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: 05a2872267ad78455b099ce78f589c49dd3c1293c75eb847d372d5ef2557b142
|
4
|
+
data.tar.gz: 5e7bee0d83a28cefe8e2c8f216e91270d454d503a0b8a8e1a1c720f34829fb61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5ad90b01cbaf9e53b7b7c5c04710cdbed62e135933909d2b647f25b5fcf4901b27e4e5ff64a283e482c6a804176407c47a7297f02d85b062c08ce6f3e082a18
|
7
|
+
data.tar.gz: 6b7b1053579f68a404041402108a88dc5147d70945e2f26b78390683ac9e0139f8cf07285ce787bf289aa3bcb3ff6711ea055ef19d4c97ff523c9b082b47fc92
|
@@ -38,7 +38,7 @@ module OmniAuth
|
|
38
38
|
}
|
39
39
|
|
40
40
|
ensure_method!(@method)
|
41
|
-
@polaris_method = METHOD[@method]
|
41
|
+
@polaris_method = METHOD[@method.to_s.to_sym]
|
42
42
|
end
|
43
43
|
|
44
44
|
def authenticate_patron(pin:, barcode:)
|
@@ -63,14 +63,14 @@ module OmniAuth
|
|
63
63
|
protected
|
64
64
|
|
65
65
|
def authorization_response(pin, barcode, request_date)
|
66
|
-
patron_validate_uri = "#{@http_uri}
|
66
|
+
patron_validate_uri = "#{@http_uri}#{barcode}"
|
67
67
|
validation_concated_string = "#{@polaris_method}#{patron_validate_uri}#{request_date}#{pin}"
|
68
68
|
polaris_get_xml_response(patron_validate_uri, request_date, validation_concated_string)
|
69
69
|
end
|
70
70
|
|
71
71
|
def details_response(pin, barcode, request_date)
|
72
72
|
patron_basic_data_uri = "#{@http_uri}#{barcode}/basicdata"
|
73
|
-
details_concated_string = "#{@polaris_method}#{
|
73
|
+
details_concated_string = "#{@polaris_method}#{patron_basic_data_uri}#{request_date}#{pin}"
|
74
74
|
polaris_get_xml_response(patron_basic_data_uri, request_date, details_concated_string)
|
75
75
|
end
|
76
76
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-polaris
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Anderson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-03-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|