Sha256: 74ebea9f612a5ef8c932566d9f3c9b364c5ad5efba9d6db8bcb90298bdeba4f0

Contents?: true

Size: 539 Bytes

Versions: 3

Compression:

Stored size: 539 Bytes

Contents

# coding: utf-8
require 'openssl'
require 'json'
require 'active_support/core_ext/module/attribute_accessors'
require 'active_support/core_ext/numeric/time'

require 'hmac_auth/version'
require 'hmac_auth/error'
require 'hmac_auth/signature'

module HMACAuth
  mattr_accessor :secret,
    :reject_keys,
    :valid_for

  # The shared secret.
  self.secret = nil

  # Keys to ignore when signing/verifying.
  self.reject_keys = %w(action controller format)

  # Time the signature is valid when verifying
  self.valid_for = 15.minutes

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hmac_auth-0.1.2 lib/hmac_auth.rb
hmac_auth-0.1.1 lib/hmac_auth.rb
hmac_auth-0.1.0 lib/hmac_auth.rb