Class: CryptIdent::Config

Inherits:
Hanami::Entity
  • Object
show all
Defined in:
lib/crypt_ident/config.rb

Overview

Configuration attributes for CryptIdent, with default values.

See the project README for details. Reek thinks this class has :reek:TooManyConstants and that @attributes is a :reek:InstanceVariableAssumption. Welcome to dry-rb and Hanami.

Constant Summary collapse

ERROR_KEY =

Flash index to use for error messages.

:error
HASHING_COST =

Hashing cost for BCrypt. Note that each 1-unit increase doubles the processing time needed to encode/decode a password.

8
RESET_EXPIRY =

Password-reset expiry in seconds; defaults to 24 hours.

24 * 60 * 60
SESSION_EXPIRY =

Authentication session expiry in seconds; defaults to 15 minutes.

15 * 60
SUCCESS_KEY =

Flash index to use for success-notification messages.

:success
TOKEN_BYTES =

Length, in bytes, of the number to be generated for the token. Default is 24. (Must be a multiple of 12 to avoid padding when encoding using Base64.strict_encode64.)

24