This commit is contained in:
@@ -20,11 +20,10 @@ namespace qbridge.Controllers
|
|||||||
#if (DEBUG)
|
#if (DEBUG)
|
||||||
public const string REDIRECT_URI = "https://localhost:3003/redirect";
|
public const string REDIRECT_URI = "https://localhost:3003/redirect";
|
||||||
#else
|
#else
|
||||||
public const string REDIRECT_URI = "https://qboauth.ayanova.com/redirect";
|
public const string REDIRECT_URI = "https://qboauth.ayanova.com/redirect";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public const string DISCOVERY_DOCUMENT_URL = "https://developer.api.intuit.com/.well-known/openid_sandbox_configuration";
|
public const string DISCOVERY_DOCUMENT_URL = "https://developer.api.intuit.com/.well-known/openid_sandbox_configuration";
|
||||||
|
|
||||||
public static Dictionary<string, QBToken> TOKEN_STORE = null;
|
public static Dictionary<string, QBToken> TOKEN_STORE = null;
|
||||||
|
|
||||||
//current 2019 fall disco doc urls
|
//current 2019 fall disco doc urls
|
||||||
@@ -242,7 +241,8 @@ namespace qbridge.Controllers
|
|||||||
var token = TOKEN_STORE.FirstOrDefault(pair => pair.Key == state);
|
var token = TOKEN_STORE.FirstOrDefault(pair => pair.Key == state);
|
||||||
if (token.Key == null)
|
if (token.Key == null)
|
||||||
{
|
{
|
||||||
Task.WaitAll( Task.Delay( 10000 ) );
|
//delay failed request to foil fishing and dos attempts
|
||||||
|
Task.WaitAll(Task.Delay(10000));
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -250,9 +250,6 @@ namespace qbridge.Controllers
|
|||||||
return Ok(token);
|
return Ok(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user