sinatra-portier 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/sinatra/browserid.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43aff4c00fba90124b18706ffef61437a26badf1
|
4
|
+
data.tar.gz: 477433ac7a39787b1fbcdd17f242d688ef1ebda6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03d34e44f06d5c031c663a5d27220527071378134bca16776960a083ff3f577602fdf9d2a8c8e25542eb1e596521921b0c0b8017a516341bab9d2feff6b4f526
|
7
|
+
data.tar.gz: f155280de33af8a9af0fcfed33df03b8d4ef2a2c5eba2e8d1d9f5a7e13660696252433206c84579ce922b9301a124515d6b0a809cccf79f9fd9ca990cca97fd3
|
data/lib/sinatra/browserid.rb
CHANGED
@@ -29,7 +29,7 @@ module Sinatra
|
|
29
29
|
begin
|
30
30
|
# 3. Server checks signature
|
31
31
|
# for that, fetch the public key from the LA instance (TODO: Do that beforehand for trusted instances, and generally cache the key)
|
32
|
-
public_key_jwks = JSON.parse(URI.parse(URI.escape(settings.browserid_url + '/
|
32
|
+
public_key_jwks = ::JSON.parse(URI.parse(URI.escape(settings.browserid_url + '/keys.json')).read)
|
33
33
|
public_key = OpenSSL::PKey::RSA.new
|
34
34
|
public_key.e = OpenSSL::BN.new UrlSafeBase64.decode64(public_key_jwks["keys"][0]["e"]), 2
|
35
35
|
public_key.n = OpenSSL::BN.new UrlSafeBase64.decode64(public_key_jwks["keys"][0]["n"]), 2
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-portier
|
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
|
- Pete Fritchman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-10
|
12
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.6.
|
88
|
+
rubygems_version: 2.6.8
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Sinatra extension for user authentication with portier
|