omniauth-apple 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d02eff08c32265bcb73e97ecc94b1d8618c18f12b639a777857ff55ca63f6fa8
4
- data.tar.gz: 79f70fdc2a50af00f0dce3732c36b9865409622a724a9950c7dcae31cfddb000
3
+ metadata.gz: a5e32b1f9b3dfe8859855b86ffdb6da18d238c0f065d2aa83fd8494ae49a3dc5
4
+ data.tar.gz: bab7b98074c2a989120b1a7d3188a9ba85037c55956efc5e2e462373ed9d0d4f
5
5
  SHA512:
6
- metadata.gz: 42ef4d2b269a555f35a2afd042fe267dcba9de51ab14a4fe16804ca83ba5060dd906e00ecdf58f067fdefeff08f8f6459fd302da93482a6e63ee4c131b2b22df
7
- data.tar.gz: ff29eb36ce8e76e06041a5b86d0b4d393d7407feda0a2bd716d71dae925ef5e1e1032742d71f731e065cd09b7836b51ab9a487425221c8b4ac0128ce8248610d
6
+ metadata.gz: bce3e4e1a4feb3df68f3d2d5361a56e6977dfe765068b2bee6cef743a41f59212d1b533a1cdefbeb1eaebf8a7cf832dd0f53dbd080f4efa1311bd30942b7ea86
7
+ data.tar.gz: c67ff848f44f6061c6f319db5a708e0e407977446252bea63af9e94799df2ce140c93dd7a5be5c1afbbdf3fdcdeafaeb7650cad4de199749d8edb436f21896e8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.2] - 2021-05-19
4
+
5
+ ### Fixed
6
+
7
+ - [#59](https://github.com/nhosoya/omniauth-apple/pull/59) Provide User-Agent when fetching JWKs
8
+
9
+
3
10
  ## [1.0.1] - 2020-12-03
4
11
 
5
12
  ### Security
@@ -37,6 +44,7 @@
37
44
 
38
45
  ## [0.0.1] - 2019-06-07
39
46
 
40
- [Unreleased]: https://github.com/nhosoya/omniauth-apple/compare/v1.0.0...master
47
+ [Unreleased]: https://github.com/nhosoya/omniauth-apple/compare/v1.0.2...master
41
48
  [1.0.0]: https://github.com/nhosoya/omniauth-apple/compare/v0.0.3...v1.0.0
42
49
  [1.0.1]: https://github.com/nhosoya/omniauth-apple/compare/v1.0.0...v1.0.1
50
+ [1.0.2]: https://github.com/nhosoya/omniauth-apple/compare/v1.0.1...v1.0.2
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Apple
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -75,8 +75,10 @@ module OmniAuth
75
75
  end
76
76
 
77
77
  def fetch_jwks
78
- uri = URI.parse('https://appleid.apple.com/auth/keys')
79
- response = Net::HTTP.get_response(uri)
78
+ http = Net::HTTP.new('appleid.apple.com', 443)
79
+ http.use_ssl = true
80
+ request = Net::HTTP::Get.new('/auth/keys', 'User-Agent' => 'ruby/omniauth-apple')
81
+ response = http.request(request)
80
82
  JSON.parse(response.body, symbolize_names: true)
81
83
  end
82
84
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-apple
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nhosoya
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-12-03 00:00:00.000000000 Z
12
+ date: 2021-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  requirements: []
153
- rubygems_version: 3.1.2
153
+ rubygems_version: 3.2.3
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: OmniAuth strategy for Sign In with Apple