This commit is contained in:
2019-10-11 20:47:25 +00:00
parent 817b33ab65
commit 097c7ccc0e
2 changed files with 15 additions and 3 deletions

View File

@@ -298,8 +298,17 @@ namespace AyaNova.PlugIn.QBOI
//oAuth2 new variables
public static Intuit.Ipp.OAuth2PlatformClient.OAuth2Client oac = null;
const string Q2_CLIENT_ID = "ABj70Wv5gDauFd9KgKFwuvpQjfzTwEgodEG8tnBbS8mSQhNrZJ";
const string Q2_CLIENT_SECRET = "XUmJyvEcEuwQuyhARUAm0a8G3gzbEAeMiATCLyFZ";
//Sandbox keys:
//const string Q2_CLIENT_ID = "ABj70Wv5gDauFd9KgKFwuvpQjfzTwEgodEG8tnBbS8mSQhNrZJ";
//const string Q2_CLIENT_SECRET = "XUmJyvEcEuwQuyhARUAm0a8G3gzbEAeMiATCLyFZ";
//Production keys
//const string Q2_CLIENT_ID = "ABdUcQuZU9RJuVta7Jqbul85LnTpBwuR54hmvgAMn7NnZOuZam";
//const string Q2_CLIENT_SECRET = "iKd71iFV4PTaSlm22jB084RuiDIXcFfIEaOp88n4";
//xor encrypted
const string Q2_CLIENT_ID = "\b,:\n2;O=#3=A%%VC#\a7\v=\\W\r$.$\rR\a\0, 9$";
const string Q2_CLIENT_SECRET = " %XX\n#Z&;\b0\t$\\D+S]}<-*=*(&,*9VN]";
const string Q2_REDIRECT_URL = "https://qboauth.ayanova.com/redirect";
const string Q2_ENVIRONMENT = "Sandbox";
const string Q2_QBO_BASE_URL = "https://sandbox-quickbooks.api.intuit.com/";
@@ -412,6 +421,7 @@ namespace AyaNova.PlugIn.QBOI
//then test that all ops work witha fresh company connection
static public bool StartAuthorization()
{
//used to tie this session to the auth key on our server for fetching later
QBOI2_SESSION_TOKEN = RandomInt64().ToString();
@@ -460,7 +470,7 @@ namespace AyaNova.PlugIn.QBOI
//start the clock on the tokens
TOKEN_BIRTHDAY = DateTime.Now;
oac = new OAuth2Client(Q2_CLIENT_ID, Q2_CLIENT_SECRET, Q2_REDIRECT_URL, Q2_ENVIRONMENT);
oac = new OAuth2Client(Ec(Q2_CLIENT_ID, "Invoice"), Ec(Q2_CLIENT_SECRET, "Invoice"), Q2_REDIRECT_URL, Q2_ENVIRONMENT);
//case 3669
//https://help.developer.intuit.com/s/question/0D50f00005gFeqpCAC/how-do-i-suddenly-get-there-was-an-error-while-communicating-with-the-ids-server