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
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
@@ -242,6 +241,7 @@ namespace qbridge.Controllers
var token = TOKEN_STORE.FirstOrDefault(pair => pair.Key == state);
if (token.Key == null)
{
//delay failed request to foil fishing and dos attempts
Task.WaitAll(Task.Delay(10000));
return NotFound();
}
@@ -250,9 +250,6 @@ namespace qbridge.Controllers
return Ok(token);
}
}