Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quickbooks: Moved oauth consumer key and secret to config.yml.copy
- Loading branch information
1 parent
075e83f
commit de6dfa0
Showing
3 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
#Developemnt | ||
OAUTH_CONSUMER_KEY = "Q0pXk97gDUL216bKrXxkpvwtQRcHiziESQnX2UPa8DPYEgqVWT" #new sandbox a/c for tabish.saleem@nxb.com | ||
OAUTH_CONSUMER_SECRET = "mN2DSkq4HZeq3CnmzmtE1veDRfj3HhhYCOJXWTno" #new sandbox a/c for tabish.saleem@nxb.com | ||
|
||
#Production | ||
# OAUTH_CONSUMER_KEY = "Q0MKd1gPqFPsQuNK4BqqLzUtnJAeNqggYzHOO0avNaoVsxHXu6" #new LIVE APP a/c for tabish.saleem@nxb.com | ||
# OAUTH_CONSUMER_SECRET = "FUO3GbohDyti4Ec9CP22TftwJNSDI56TZCgQrSO8" #new LIVE APP a/c for tabish.saleem@nxb.com | ||
|
||
oauth_params = { | ||
:site => "https://appcenter.intuit.com/connect/oauth2", | ||
:authorize_url => "https://appcenter.intuit.com/connect/oauth2", | ||
:token_url => "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer" | ||
} | ||
|
||
::QB_OAUTH2_CONSUMER = OAuth2::Client.new(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, oauth_params) | ||
site: 'https://appcenter.intuit.com/connect/oauth2', | ||
authorize_url: 'https://appcenter.intuit.com/connect/oauth2', | ||
token_url: 'https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer' | ||
} | ||
::QB_OAUTH2_CONSUMER = OAuth2::Client.new(OSB::CONFIG::OAUTH_CONSUMER_KEY, OSB::CONFIG::OAUTH_CONSUMER_SECRET, oauth_params) | ||
Quickbooks.sandbox_mode = true |