Skip to content
Browse files

Ghetto fix to make ActiveResource work with an

oath access token.
  • Loading branch information...
1 parent fd6cabf commit c8fe0a917855d1b37b046f04968398a1e2a7fbef David Underwood committed Mar 23, 2012
Showing with 2 additions and 8 deletions.
  1. +1 −7 lib/shopify_api/session.rb
  2. +1 −1 lib/shopify_api/version.rb
View
8 lib/shopify_api/session.rb
@@ -123,12 +123,6 @@ def validate_signature(params)
def initialize(url, token = nil, params = nil)
self.url, self.token = url, token
- if params
- unless self.class.validate_signature(params) && params[:timestamp].to_i > 24.hours.ago.utc.to_i
- raise "Invalid Signature: Possible malicious login"
- end
- end
-
self.class.prepare_url(self.url)
end
@@ -158,7 +152,7 @@ def valid?
# registring this third party application and concating the request_to it,
# and then calculating a MD5 hexdigest.
def computed_password
- Digest::MD5.hexdigest(secret + token.to_s)
+ token.to_s
end
end
View
2 lib/shopify_api/version.rb
@@ -1,3 +1,3 @@
module ShopifyAPI
- VERSION = "2.3.0"
+ VERSION = "2.3.0-oauth"
end

0 comments on commit c8fe0a9

Please sign in to comment.
Something went wrong with that request. Please try again.