Sha256: 792cd1869dfa54fcce23c8fb598288bd0911d4d9a1fee191f86c00f0f15968d4
Contents?: true
Size: 777 Bytes
Versions: 3
Compression:
Stored size: 777 Bytes
Contents
# Dummy implementation class ClientApplication attr_accessor :key def self.find_by_key(key) ClientApplication.new(key) end def initialize(key) @key = key end def tokens @tokens||=[] end def secret "secret" end end class OauthToken attr_accessor :token, :refresh_token def self.where(q, p) case p when "not_authorized", "invalidated" [] else [OauthToken.new(p)] end end def initialize(token) @token = token end def secret "secret" end end class Oauth2Token < OauthToken ; end class Oauth2Verifier < OauthToken ; end class AccessToken < OauthToken ; end class RequestToken < OauthToken ; end class OauthNonce # Always remember def self.remember(nonce,timestamp) true end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
houston-oauth-plugin-0.5.1 | spec/dummy_provider_models.rb |
oauth-plugin-0.5.1 | spec/dummy_provider_models.rb |
oauth-plugin-0.5.0 | spec/dummy_provider_models.rb |