class SimpleGoogleAuth::Config
Public Instance Methods
authenticate=(value)
click to toggle source
Calls superclass method
# File lib/simple_google_auth/config.rb, line 34 def authenticate=(value) raise Error, "Your SimpleGoogleAuth authenticator must be an object that responds to :call, normally a lambda. See documentation for configuration details." unless value.respond_to?(:call) super end
authentication_uri_state_builder=(value)
click to toggle source
Calls superclass method
# File lib/simple_google_auth/config.rb, line 40 def authentication_uri_state_builder=(value) raise Error, "Your SimpleGoogleAuth authentication_uri_state_builder must be an object that responds to :call, normally a lambda. See documentation for configuration details." unless value.respond_to?(:call) super end
authentication_uri_state_path_extractor=(value)
click to toggle source
Calls superclass method
# File lib/simple_google_auth/config.rb, line 46 def authentication_uri_state_path_extractor=(value) raise Error, "Your SimpleGoogleAuth authentication_uri_state_path_extractor must be an object that responds to :call, normally a lambda. See documentation for configuration details." unless value.respond_to?(:call) super end
ca_path=(value)
click to toggle source
# File lib/simple_google_auth/config.rb, line 22 def ca_path=(value) Rails.logger.warn "ca_path is no longer used by SimpleGoogleAuth as OpenSSL is clever enough to find its ca_path now" end
client_id()
click to toggle source
Calls superclass method
# File lib/simple_google_auth/config.rb, line 26 def client_id get_or_call super end
client_secret()
click to toggle source
Calls superclass method
# File lib/simple_google_auth/config.rb, line 30 def client_secret get_or_call super end
Private Instance Methods
get_or_call(value)
click to toggle source
# File lib/simple_google_auth/config.rb, line 54 def get_or_call(value) value.respond_to?(:call) ? value.call : value end