Class: OpenidCouchdbStore::Nonce

Inherits:
CouchRest::ExtendedDocument
  • Object
show all
Defined in:
lib/openid_couchdb_store.rb

Class Method Summary collapse

Class Method Details

.expiredObject



53
54
55
# File 'lib/openid_couchdb_store.rb', line 53

def self.expired
  by_timestamp(:endkey => Time.now.to_i)
end

.first_nonce(server_url, timestamp, salt) ⇒ Object



49
50
51
# File 'lib/openid_couchdb_store.rb', line 49

def self.first_nonce(server_url,timestamp,salt)
  by_server_url_salt_timestamp(:key => "#{server_url}&#{salt}&#{timestamp}").first
end