Modified: trunk/app/models/client_application.rb (2256 => 2257)
--- trunk/app/models/client_application.rb 2009-07-31 13:35:43 UTC (rev 2256)
+++ trunk/app/models/client_application.rb 2009-07-31 14:38:49 UTC (rev 2257)
@@ -32,7 +32,7 @@
logger.info "Signature verification returned: #{value.to_s}"
value
rescue OAuth::Signature::UnknownSignatureMethod=>e
- logger.info "ERROR"+e.to_s
+ #logger.info "ERROR"+e.to_s
false
end
end
Modified: trunk/vendor/plugins/oauth_plugin/lib/oauth/rails/controller_methods.rb (2256 => 2257)
--- trunk/vendor/plugins/oauth_plugin/lib/oauth/rails/controller_methods.rb 2009-07-31 13:35:43 UTC (rev 2256)
+++ trunk/vendor/plugins/oauth_plugin/lib/oauth/rails/controller_methods.rb 2009-07-31 14:38:49 UTC (rev 2257)
@@ -14,9 +14,9 @@
end
def oauthenticate
- logger.info "entering oauthenticate"
+# logger.info "entering oauthenticate"
verified=verify_oauth_signature
- logger.info "verified=#{verified.to_s}"
+# logger.info "verified=#{verified.to_s}"
return verified && current_token.is_a?(::AccessToken)
end
@@ -26,18 +26,18 @@
# use in a before_filter
def oauth_required
- logger.info "address@hidden"
+# logger.info "address@hidden"
if oauthenticate
- logger.info "passed oauthenticate"
+# logger.info "passed oauthenticate"
if authorized?
- logger.info "passed authorized"
+# logger.info "passed authorized"
return true
else
- logger.info "failed authorized"
+# logger.info "failed authorized"
invalid_oauth_response
end
else
- logger.info "failed oauthenticate"
+# logger.info "failed oauthenticate"
# Return true instead, so public api calls still work
return true
#invalid_oauth_response
@@ -100,8 +100,8 @@
begin
valid = ClientApplication.verify_request(request) do |token|
self.current_token = ClientApplication.find_token(token)
- logger.info "self=#{self.class.to_s}"
- logger.info "token=#{self.current_token}"
+# logger.info "self=#{self.class.to_s}"
+# logger.info "token=#{self.current_token}"
# return the token secret and the consumer secret
[(current_token.nil? ? nil : current_token.secret), (current_client_application.nil? ? nil : current_client_application.secret)]
end