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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sinatra/browserid.rb +1 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3526df1906d6fda7d480ccc1059a993380b23517
4
- data.tar.gz: f024759855c2410cc6d16fc938d9f6b626316c08
3
+ metadata.gz: 43aff4c00fba90124b18706ffef61437a26badf1
4
+ data.tar.gz: 477433ac7a39787b1fbcdd17f242d688ef1ebda6
5
5
  SHA512:
6
- metadata.gz: 7ceaea629c496c9b2823f03359380824148d4f55bd7418efea7dc3c8aa63cfb36da04f9c32493e31d33e0564b8f30515aae6ba989743295132cf31fa2f69b4ce
7
- data.tar.gz: 27b7766b99dc5c50f4e4309b060be43d1f790ad8af3df2c89783c5245c79837c11bd5d2ca5d72ccb643d0f732202409d0876abb1a0d1fb30b5e4aad2d5637a12
6
+ metadata.gz: 03d34e44f06d5c031c663a5d27220527071378134bca16776960a083ff3f577602fdf9d2a8c8e25542eb1e596521921b0c0b8017a516341bab9d2feff6b4f526
7
+ data.tar.gz: f155280de33af8a9af0fcfed33df03b8d4ef2a2c5eba2e8d1d9f5a7e13660696252433206c84579ce922b9301a124515d6b0a809cccf79f9fd9ca990cca97fd3
@@ -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 + '/jwks.json')).read)
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.0
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-16 00:00:00.000000000 Z
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.7
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