cartodb-4.42/config/initializers/oauth.rb

20 lines
465 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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