Class: Shakha::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



15
16
17
18
19
# File 'lib/shakha/config.rb', line 15

def initialize
  @session_lifetime = 30.days
  @rate_limiting_enabled = false
  @providers = [:google]
end

Instance Attribute Details

#allowed_redirect_originsObject

Returns the value of attribute allowed_redirect_origins.



5
6
7
# File 'lib/shakha/config.rb', line 5

def allowed_redirect_origins
  @allowed_redirect_origins
end

#app_originObject

Returns the value of attribute app_origin.



5
6
7
# File 'lib/shakha/config.rb', line 5

def app_origin
  @app_origin
end

#github_client_idObject

Returns the value of attribute github_client_id.



5
6
7
# File 'lib/shakha/config.rb', line 5

def github_client_id
  @github_client_id
end

#github_client_secretObject

Returns the value of attribute github_client_secret.



5
6
7
# File 'lib/shakha/config.rb', line 5

def github_client_secret
  @github_client_secret
end

#google_client_idObject

Returns the value of attribute google_client_id.



5
6
7
# File 'lib/shakha/config.rb', line 5

def google_client_id
  @google_client_id
end

#google_client_secretObject

Returns the value of attribute google_client_secret.



5
6
7
# File 'lib/shakha/config.rb', line 5

def google_client_secret
  @google_client_secret
end

#providersObject

Returns the value of attribute providers.



5
6
7
# File 'lib/shakha/config.rb', line 5

def providers
  @providers
end

#rate_limiting_enabledObject

Returns the value of attribute rate_limiting_enabled.



5
6
7
# File 'lib/shakha/config.rb', line 5

def rate_limiting_enabled
  @rate_limiting_enabled
end

#session_lifetimeObject

Returns the value of attribute session_lifetime.



5
6
7
# File 'lib/shakha/config.rb', line 5

def session_lifetime
  @session_lifetime
end