lib/oauth/controllers/application_controller_methods.rb in oauth-plugin-0.3.11 vs lib/oauth/controllers/application_controller_methods.rb in oauth-plugin-0.3.12
- old
+ new
@@ -16,15 +16,10 @@
def oauthenticate
verified=verify_oauth_signature
return verified && current_token.is_a?(::AccessToken)
end
- # Skip the authenticity filter if we have an oauth token
- def verify_authenticity_token
- super unless oauth?
- end
-
def oauth?
current_token!=nil
end
# use in a before_filter
@@ -72,10 +67,10 @@
invalid_oauth_response unless valid
end
def verify_oauth_request_token
- verify_oauth_signature && current_token.is_a?(RequestToken)
+ verify_oauth_signature && current_token.is_a?(::RequestToken)
end
def invalid_oauth_response(code=401,message="Invalid OAuth Request")
render :text => message, :status => code
end
\ No newline at end of file