This commit is contained in:
@@ -14,16 +14,25 @@ namespace qbridge.Controllers
|
||||
[Produces("application/json")]
|
||||
public class OAuthRedirectController : ControllerBase
|
||||
{
|
||||
public const string CLIENT_ID = "ABj70Wv5gDauFd9KgKFwuvpQjfzTwEgodEG8tnBbS8mSQhNrZJ";
|
||||
public const string CLIENT_SECRET = "XUmJyvEcEuwQuyhARUAm0a8G3gzbEAeMiATCLyFZ";
|
||||
|
||||
|
||||
|
||||
#if (DEBUG)
|
||||
//SANDBOX
|
||||
public const string CLIENT_ID = "ABj70Wv5gDauFd9KgKFwuvpQjfzTwEgodEG8tnBbS8mSQhNrZJ";
|
||||
public const string CLIENT_SECRET = "XUmJyvEcEuwQuyhARUAm0a8G3gzbEAeMiATCLyFZ";
|
||||
public const string REDIRECT_URI = "https://localhost:3003/redirect";
|
||||
public const string DISCOVERY_DOCUMENT_URL = "https://developer.api.intuit.com/.well-known/openid_sandbox_configuration";
|
||||
#else
|
||||
public const string REDIRECT_URI = "https://qboauth.ayanova.com/redirect";
|
||||
//PRODUCTION
|
||||
public const string CLIENT_ID = "ABdUcQuZU9RJuVta7Jqbul85LnTpBwuR54hmvgAMn7NnZOuZam";
|
||||
public const string CLIENT_SECRET = "iKd71iFV4PTaSlm22jB084RuiDIXcFfIEaOp88n4";
|
||||
public const string DISCOVERY_DOCUMENT_URL = "https://developer.api.intuit.com/.well-known/openid_configuration";
|
||||
|
||||
#endif
|
||||
|
||||
public const string DISCOVERY_DOCUMENT_URL = "https://developer.api.intuit.com/.well-known/openid_sandbox_configuration";
|
||||
|
||||
public static Dictionary<string, QBToken> TOKEN_STORE = null;
|
||||
|
||||
//current 2019 fall disco doc urls
|
||||
@@ -79,7 +88,7 @@ namespace qbridge.Controllers
|
||||
public async Task<IActionResult> GetAsync([FromRoute]string state, [FromRoute] string sourceid)
|
||||
{
|
||||
//sourceid is actually the license ID or serial number so I can tell who is using and ultimately filter them out if they are not licensed and up to date (down the road, not initially)
|
||||
|
||||
|
||||
if (string.IsNullOrWhiteSpace(state))
|
||||
{
|
||||
return BadRequest("First parameter value");
|
||||
|
||||
Reference in New Issue
Block a user