Module: AppleID
- Defined in:
- lib/apple_id.rb,
lib/apple_id/jwks.rb,
lib/apple_id/client.rb,
lib/apple_id/id_token.rb,
lib/apple_id/event_token.rb,
lib/apple_id/access_token.rb,
lib/apple_id/event_token/event.rb,
lib/apple_id/api/user_migration.rb,
lib/apple_id/id_token/real_user_status.rb
Defined Under Namespace
Modules: API
Classes: AccessToken, Client, Error, EventToken, IdToken, JWKS
Constant Summary
collapse
- ISSUER =
'https://appleid.apple.com'
- JWKS_URI =
'https://appleid.apple.com/auth/keys'
- VERSION =
::File.read(
::File.join(::File.dirname(__FILE__), '../VERSION')
).chomp
Class Method Summary
collapse
Class Method Details
.debug(&block) ⇒ Object
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/apple_id.rb', line 40
def self.debug(&block)
sub_protocol_originals = @sub_protocols.inject({}) do |sub_protocol_originals, klass|
sub_protocol_originals.merge!(klass => klass.debugging?)
end
original = self.debugging?
debug!
yield
ensure
@sub_protocols.each do |klass|
klass.debugging = sub_protocol_originals[klass]
end
self.debugging = original
end
|
.debug! ⇒ Object
34
35
36
37
38
39
|
# File 'lib/apple_id.rb', line 34
def self.debug!
@sub_protocols.each do |klass|
klass.debug!
end
self.debugging = true
end
|
.debugging=(boolean) ⇒ Object
28
29
30
31
32
33
|
# File 'lib/apple_id.rb', line 28
def self.debugging=(boolean)
@sub_protocols.each do |klass|
klass.debugging = boolean
end
@@debugging = boolean
end
|
.debugging? ⇒ Boolean
25
26
27
|
# File 'lib/apple_id.rb', line 25
def self.debugging?
@@debugging
end
|
.logger ⇒ Object
13
14
15
|
# File 'lib/apple_id.rb', line 13
def self.logger
@@logger
end
|
.logger=(logger) ⇒ Object
16
17
18
|
# File 'lib/apple_id.rb', line 16
def self.logger=(logger)
@@logger = logger
end
|