Class OauthNonce
In: lib/generators/active_record/oauth_provider_templates/oauth_nonce.rb
lib/generators/mongoid/oauth_provider_templates/oauth_nonce.rb
Parent: ActiveRecord::Base

Simple store of nonces. The OAuth Spec requires that any given pair of nonce and timestamps are unique. Thus you can use the same nonce with a different timestamp and viceversa.

Methods

remember   remember  

Included Modules

Mongoid::Document Mongoid::Timestamps

Public Class methods

Remembers a nonce and it‘s associated timestamp. It returns false if it has already been used

Remembers a nonce and it‘s associated timestamp. It returns false if it has already been used

[Validate]