Class: AppleID::IdToken
- Inherits:
-
OpenIDConnect::ResponseObject::IdToken
- Object
- OpenIDConnect::ResponseObject::IdToken
- AppleID::IdToken
- Defined in:
- lib/apple_id/id_token.rb
Defined Under Namespace
Classes: RealUserStatus, VerificationFailed
Instance Attribute Summary collapse
-
#original_jwt_string ⇒ Object
Returns the value of attribute original_jwt_string.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ IdToken
constructor
A new instance of IdToken.
- #verify!(verify_signature: true, client: nil, nonce: nil, state: nil, access_token: nil, code: nil) ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ IdToken
Returns a new instance of IdToken.
21 22 23 24 25 26 |
# File 'lib/apple_id/id_token.rb', line 21 def initialize(attributes = {}) super unless self.real_user_status.nil? self.real_user_status = RealUserStatus.new(self.real_user_status) end end |
Instance Attribute Details
#original_jwt_string ⇒ Object
Returns the value of attribute original_jwt_string.
6 7 8 |
# File 'lib/apple_id/id_token.rb', line 6 def original_jwt_string @original_jwt_string end |
Class Method Details
.decode(jwt_string) ⇒ Object
35 36 37 38 39 |
# File 'lib/apple_id/id_token.rb', line 35 def decode(jwt_string) id_token = super jwt_string, :skip_verification id_token.original_jwt_string = jwt_string id_token end |
Instance Method Details
#verify!(verify_signature: true, client: nil, nonce: nil, state: nil, access_token: nil, code: nil) ⇒ Object
28 29 30 31 32 |
# File 'lib/apple_id/id_token.rb', line 28 def verify!(verify_signature: true, client: nil, nonce: nil, state: nil, access_token: nil, code: nil) verify_signature! if verify_signature verify_claims! client, nonce, state, access_token, code self end |