Class: Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/jm81auth/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



4
5
6
7
8
# File 'lib/jm81auth/configuration.rb', line 4

def initialize
  @client_secrets = {}
  @expires_seconds = 30 * 86400
  @jwt_algorithm = 'HS512'
end

Instance Attribute Details

#client_secretsObject

Returns the value of attribute client_secrets.



2
3
4
# File 'lib/jm81auth/configuration.rb', line 2

def client_secrets
  @client_secrets
end

#expires_secondsObject

Returns the value of attribute expires_seconds.



2
3
4
# File 'lib/jm81auth/configuration.rb', line 2

def expires_seconds
  @expires_seconds
end

#jwt_algorithmObject

Returns the value of attribute jwt_algorithm.



2
3
4
# File 'lib/jm81auth/configuration.rb', line 2

def jwt_algorithm
  @jwt_algorithm
end

#jwt_secretObject

Returns the value of attribute jwt_secret.



2
3
4
# File 'lib/jm81auth/configuration.rb', line 2

def jwt_secret
  @jwt_secret
end