module SingleUserOauth::Keys

Public Instance Methods

nonce() click to toggle source
# File lib/single_user_oauth/keys.rb, line 6
def nonce
  @nonce ||= OpenSSL::Random.random_bytes(16).unpack('H*')[0]
end
signature_method() click to toggle source
# File lib/single_user_oauth/keys.rb, line 10
def signature_method
  "HMAC-SHA1".freeze
end
timestamp() click to toggle source
# File lib/single_user_oauth/keys.rb, line 14
def timestamp
  @timestamp ||= Time.now.to_i.to_s
end
version() click to toggle source
# File lib/single_user_oauth/keys.rb, line 18
def version
  "1.0".freeze
end