omniauth-polaris 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdc6774680ba017d52076ea0e48f91c64c639398d68a6efc378e15f176cf7c41
4
- data.tar.gz: ac1c47675fb06db77a9e889aaa905fe8dbc5b8ff493b95e7a2ce58fbe3c2b471
3
+ metadata.gz: 05a2872267ad78455b099ce78f589c49dd3c1293c75eb847d372d5ef2557b142
4
+ data.tar.gz: 5e7bee0d83a28cefe8e2c8f216e91270d454d503a0b8a8e1a1c720f34829fb61
5
5
  SHA512:
6
- metadata.gz: 90668f491c693ed44cba53bb920e36f05b394d96e103b1f54dd1a55ef1dff87d090af930c01910a78d705083777613190e64542800c1f4a942290b4933b3d1e7
7
- data.tar.gz: 02a9cf3dc5b6ab29db564ed28c63ac616b93572ea2ba4df72c388b5b9937bf535d1aebfe6d169154d563ac917121efb8cae87594bd89a7ed04a285a1e69b5540
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}/patron/#{barcode}"
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}#{http_basic_data_uri}#{request_date}#{pin}"
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Polaris
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
  end
7
7
  end
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.0
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-01-13 00:00:00.000000000 Z
12
+ date: 2023-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport