Skip to content

Commit

Permalink
change twitter path to authorize to allow direct messages access
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Jędras committed Jul 11, 2011
1 parent e540fd9 commit e824c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oa-oauth/lib/omniauth/strategies/oauth/twitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(app, consumer_key=nil, consumer_secret=nil, options={}, &block)
:site => 'https://api.twitter.com',
}
options[:authorize_params] = {:force_login => 'true'} if options.delete(:force_login) == true
client_options[:authorize_path] = '/oauth/authenticate' unless options[:sign_in] == false
client_options[:authorize_path] = '/oauth/authorize' unless options[:sign_in] == false
super(app, options[:name] || :twitter, consumer_key, consumer_secret, client_options, options, &block)
end

Expand Down

0 comments on commit e824c66

Please sign in to comment.