omniauth-ucam-raven 2.0.0 → 2.0.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: 18905b9dcd1574b2f30aabfd3f64a724de65c7bea249cd634f8accdb020971ba
4
- data.tar.gz: a6c475afba94a4c864fd9b842edf6e622b5a4b724883706bcda3da464170c81b
3
+ metadata.gz: ae979111c7e55118047a3b69e732e020a872025f7b6115cdb66339143f8ddd17
4
+ data.tar.gz: ae4e21d77f9be18e88b5ac7f866cb826ee42c98b112771cc407656c72c3fb3e0
5
5
  SHA512:
6
- metadata.gz: 784b0877cc602ca311b8125c8a469359954b62bb0bb38092ce5e324d4c5b6f94794942b9402dc5e8b1f03338801c3ef92e48ed0daac78090f13818b8c6030557
7
- data.tar.gz: 274c9a9fcddeb0cdfc57d8441c1a0edaece1b851c24e441219a6d7ab919800ef5c7b8c2e2aa8473cf8b4feb1498aeb73c3c29f17078e323221724d225e01790f
6
+ metadata.gz: 860e5d85d22dcc0ea556ca0a14658b2d89e829db191dba81ab3950fdcb50e38cb8f575d679f35200520c0b2c3eeb53a3223d3c8b3a38f1b8a8a7b171745a2d16
7
+ data.tar.gz: fb6bc7988b6b4f452e91dbca0b7372260162b342a04df98b8c1b646f4b2ef4963e15a9e0773551ec1f8179d553d12ce2dc8de703b97391f6b4a906aca1860886
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.1] - 2020-06-03
4
+
5
+ * Cast the RSA key ID to an integer when verifying authentication signatures.
6
+
3
7
  ## [2.0.0] - 2020-05-27
4
8
 
5
9
  * Add support for the SRCF Goose authentication service.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- omniauth-ucam-raven (1.0.1)
4
+ omniauth-ucam-raven (2.0.1)
5
5
  omniauth (~> 1.0)
6
6
 
7
7
  GEM
@@ -1,13 +1,15 @@
1
1
  class UcamRavenExample < Sinatra::Base
2
2
  use Rack::Session::Cookie
3
3
  use OmniAuth::Builder do
4
- key_data = [[2, "/Users/charlie/Downloads/pubkey2"], [500, "/Users/charlie/Downloads/pubkey500"]]
4
+ #key_data = [[2, "/Users/charlie/Downloads/pubkey2"], [500, "/Users/charlie/Downloads/pubkey500"]]
5
+ #key_data = [[2, "/Users/charlie/Downloads/pubkey2"]]
6
+ key_data = [[500, "/Users/charlie/Downloads/pubkey500"]]
5
7
  options = {
6
8
  desc: 'Ucam-Raven Omniauth Strategy - Sinatra Demo',
7
9
  msg: 'you are testing login authorisation',
8
10
  params: 'This string will always get returned from WLS to WAA.',
9
- date: true,
10
- honk: true
11
+ honk: true,
12
+ date: true
11
13
  }
12
14
  provider :ucamraven, key_data, options
13
15
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module UcamRaven
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -83,7 +83,7 @@ module OmniAuth
83
83
 
84
84
  # Check that the RSA key ID and signature are correct.
85
85
  options.key_data.each do |kid, kpath|
86
- if wls_response[12].to_i == kid
86
+ if wls_response[12].to_i == kid.to_i
87
87
  signed_part = wls_response.first(12).join('!')
88
88
  base64_part = wls_response[13].tr('-._','+/=')
89
89
  signature = Base64.decode64(base64_part)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-ucam-raven
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Jonas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-27 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth