You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb/config/initializers/oauth.rb

20 lines
465 B

module OAuth
module Controllers
module ApplicationControllerMethods
class Authenticator
def oauth10_request_token_with_xauth
if params[:x_auth_mode] == 'client_auth'
# xAuth authentication
two_legged
else
# OAuth authentication
oauth10_request_token_without_xauth
end
end
alias_method_chain :oauth10_request_token, :xauth
end
end
end
end