lib/omniauth/strategies/oauth/twitter.rb in oa-oauth-0.3.0.rc3 vs lib/omniauth/strategies/oauth/twitter.rb in oa-oauth-0.3.0
- old
+ new
@@ -15,10 +15,10 @@
def initialize(app, consumer_key=nil, consumer_secret=nil, options={}, &block)
client_options = {
:site => 'https://api.twitter.com',
}
options[:authorize_params] = {:force_login => 'true'} if options.delete(:force_login) == true
- client_options[:authorize_path] = '/oauth/authorize' unless options[:sign_in] == false
+ client_options[:authorize_path] = '/oauth/authenticate' unless options[:sign_in] == false
super(app, options[:name] || :twitter, consumer_key, consumer_secret, client_options, options, &block)
end
def auth_hash
OmniAuth::Utils.deep_merge(