mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
oauth2
This commit is contained in:
@@ -15,12 +15,11 @@ class Qbo < ActiveRecord::Base
|
|||||||
OAUTH_CONSUMER_KEY = Setting.plugin_redmine_qbo['settingsOAuthConsumerKey']
|
OAUTH_CONSUMER_KEY = Setting.plugin_redmine_qbo['settingsOAuthConsumerKey']
|
||||||
OAUTH_CONSUMER_SECRET = Setting.plugin_redmine_qbo['settingsOAuthConsumerSecret']
|
OAUTH_CONSUMER_SECRET = Setting.plugin_redmine_qbo['settingsOAuthConsumerSecret']
|
||||||
|
|
||||||
$qb_oauth_consumer = OAuth::Consumer.new(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, {
|
$oauth_params = {
|
||||||
:site => "https://oauth.intuit.com",
|
site: "https://appcenter.intuit.com/connect/oauth2",
|
||||||
:request_token_path => "/oauth/v1/get_request_token",
|
authorize_url: "https://appcenter.intuit.com/connect/oauth2",
|
||||||
:authorize_url => "https://appcenter.intuit.com/Connect/Begin",
|
token_url: "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer"
|
||||||
:access_token_path => "/oauth/v1/get_access_token"
|
}
|
||||||
})
|
|
||||||
|
|
||||||
# Configure quickbooks-ruby-base to access our database
|
# Configure quickbooks-ruby-base to access our database
|
||||||
Quickbooks::Base.configure do |c|
|
Quickbooks::Base.configure do |c|
|
||||||
|
|||||||
Reference in New Issue
Block a user