apple_id 1.4.0 → 1.4.1

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: 4447d024e910da0480e07d58164eefce5daa78c1389ecb8a571ad20bf969c291
4
- data.tar.gz: 9ad9be586a2c3e96e7fc3d35eb07c2c6360cde0736b705c7584bdd0fc5a6aac1
3
+ metadata.gz: 535212dfcb103a30e0977d80a0d5b8bd21d8ce25ccd0d13bf450542ba706473b
4
+ data.tar.gz: df08efbc2cc0de63e9645e8d4aa9a63c5f7a632b3b61fcd27f30c47cab52c673
5
5
  SHA512:
6
- metadata.gz: c8655e9f56f4ba8e4e71b5048be8d637bb9e798acd48a5cccd979f6f55ef1d73cb1b7a2cf9e84c46a6d95727b8cf749f5b4e4a8bc7fe7a28170acea05e7581e5
7
- data.tar.gz: a097b0398ac8da49da3874a6c073abbe844339773b638761a6f33a204c9c0207a72fdab38d2eb10cf5c0edddddb4562dfd7189ad8b2e7bc8d5dfec9064903eeb
6
+ metadata.gz: 067b35d844a7e2a2c802d0823c5ef2572e4b2d1515b7b9756c3b6393ebc0633074708656fc42d89ed7522acd69fb0d377102e770e643fe31ad6eb0cc394c0d64
7
+ data.tar.gz: 13439c70fc5982bd0576645b1411979f74b2adf4df0252e05fe03c55a691a218f2d0d63ae363a0e27c434abcf26dd9a9450c42e5ffb15e5388deb2344987ede9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
@@ -2,19 +2,18 @@ module AppleID
2
2
  class EventToken < OpenIDConnect::ConnectObject
3
3
  class VerificationFailed < Error; end
4
4
 
5
- # NOTE: Apple uses `events` for the JWT key, but this gem uses `event` since it's always a single JSON Object.
6
- # Once they start returning an array of events, this gem might use `events` as the attribute name.
7
- attr_required :iss, :aud, :exp, :iat, :jti, :event
5
+ attr_required :iss, :aud, :exp, :iat, :jti, :events
8
6
  alias_method :original_jwt, :raw_attributes
7
+ alias_method :event, :events
9
8
 
10
9
  def initialize(attributes = {})
11
10
  super
12
- @event = Event.decode attributes[:events]
11
+ @events = Event.decode attributes[:events]
13
12
  end
14
13
 
15
14
  def verify!(verify_signature: true, client: nil)
16
15
  verify_signature! if verify_signature
17
- verify_claims! client, nonce, state, access_token, code
16
+ verify_claims! client
18
17
  self
19
18
  end
20
19
 
@@ -32,7 +31,7 @@ module AppleID
32
31
  raise VerificationFailed, 'Signature Verification Failed'
33
32
  end
34
33
 
35
- def verify_claims!(client, nonce, state, access_token, code)
34
+ def verify_claims!(client)
36
35
  aud = if client.respond_to?(:identifier)
37
36
  client.identifier
38
37
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov