Class: SimpleGoogleAuth::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/simple_google_auth/config.rb

Instance Method Summary collapse

Instance Method Details

#authenticate=(value) ⇒ Object

Raises:



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

Raises:



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

Raises:



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_idObject



26
27
28
# File 'lib/simple_google_auth/config.rb', line 26

def client_id
  get_or_call super
end

#client_secretObject



30
31
32
# File 'lib/simple_google_auth/config.rb', line 30

def client_secret
  get_or_call super
end