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



30
31
32
33
34
35
36
# File 'lib/simple_google_auth/config.rb', line 30

def authenticate=(value)
  if !value.respond_to?(:call)
    raise Error, "Your SimpleGoogleAuth authenticator must be an object that responds to :call, normally a lambda.  See documentation for configuration details."
  end

  super
end

#ca_path=(value) ⇒ Object



18
19
20
# File 'lib/simple_google_auth/config.rb', line 18

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



22
23
24
# File 'lib/simple_google_auth/config.rb', line 22

def client_id
  get_or_call super
end

#client_secretObject



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

def client_secret
  get_or_call super
end