Permalink
Browse files

work with oauth2

  • Loading branch information...
1 parent fd6cabf commit 0b5deb1484a50c8227bc119aa0cbdf19fff33f7a @redronin redronin committed Mar 28, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/shopify_api/session.rb
View
9 lib/shopify_api/session.rb
@@ -122,13 +122,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 +151,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

0 comments on commit 0b5deb1

Please sign in to comment.