This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user