Class: AppleID::Client
- Inherits:
-
OpenIDConnect::Client
- Object
- OpenIDConnect::Client
- AppleID::Client
- Defined in:
- lib/apple_id/client.rb
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
- #access_token!(options = {}) ⇒ Object
-
#initialize(attributes) ⇒ Client
constructor
A new instance of Client.
- #revoke!(options = {}) ⇒ Object
Constructor Details
#initialize(attributes) ⇒ Client
Returns a new instance of Client.
7 8 9 10 11 12 13 14 |
# File 'lib/apple_id/client.rb', line 7 def initialize(attributes) attributes_with_default = { authorization_endpoint: File.join(ISSUER, '/auth/authorize'), token_endpoint: File.join(ISSUER, '/auth/token'), revocation_endpoint: File.join(ISSUER, '/auth/revoke'), }.merge(attributes) super attributes_with_default end |
Instance Method Details
#access_token!(options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/apple_id/client.rb', line 16 def access_token!( = {}) self.secret = client_secret_jwt super :body, end |
#revoke!(options = {}) ⇒ Object
21 22 23 24 |
# File 'lib/apple_id/client.rb', line 21 def revoke!( = {}) self.secret = client_secret_jwt super :body, end |