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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae979111c7e55118047a3b69e732e020a872025f7b6115cdb66339143f8ddd17
|
4
|
+
data.tar.gz: ae4e21d77f9be18e88b5ac7f866cb826ee42c98b112771cc407656c72c3fb3e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 860e5d85d22dcc0ea556ca0a14658b2d89e829db191dba81ab3950fdcb50e38cb8f575d679f35200520c0b2c3eeb53a3223d3c8b3a38f1b8a8a7b171745a2d16
|
7
|
+
data.tar.gz: fb6bc7988b6b4f452e91dbca0b7372260162b342a04df98b8c1b646f4b2ef4963e15a9e0773551ec1f8179d553d12ce2dc8de703b97391f6b4a906aca1860886
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
10
|
-
|
11
|
+
honk: true,
|
12
|
+
date: true
|
11
13
|
}
|
12
14
|
provider :ucamraven, key_data, options
|
13
15
|
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.
|
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-
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|