This commit is contained in:
2019-10-02 18:04:36 +00:00
parent 853a5e82f6
commit ae6fa0d458

View File

@@ -24,7 +24,6 @@ namespace qbridge.Controllers
#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,6 +241,7 @@ 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)
{ {
//delay failed request to foil fishing and dos attempts
Task.WaitAll(Task.Delay(10000)); Task.WaitAll(Task.Delay(10000));
return NotFound(); return NotFound();
} }
@@ -250,9 +250,6 @@ namespace qbridge.Controllers
return Ok(token); return Ok(token);
} }
} }