Class: SimpleGoogleAuth::Config
- Inherits:
-
Struct
- Object
- Struct
- SimpleGoogleAuth::Config
- Defined in:
- lib/simple_google_auth/config.rb
Instance Method Summary collapse
- #authenticate=(value) ⇒ Object
- #authentication_uri_state_builder=(value) ⇒ Object
- #authentication_uri_state_path_extractor=(value) ⇒ Object
- #ca_path=(value) ⇒ Object
- #client_id ⇒ Object
- #client_secret ⇒ Object
Instance Method Details
#authenticate=(value) ⇒ Object
34 35 36 37 38 |
# 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) ⇒ Object
40 41 42 43 44 |
# 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) ⇒ Object
46 47 48 49 50 |
# 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) ⇒ Object
22 23 24 |
# 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 ⇒ Object
26 27 28 |
# File 'lib/simple_google_auth/config.rb', line 26 def client_id get_or_call super end |
#client_secret ⇒ Object
30 31 32 |
# File 'lib/simple_google_auth/config.rb', line 30 def client_secret get_or_call super end |