This commit is contained in:
@@ -20,11 +20,10 @@ namespace qbridge.Controllers
|
||||
#if (DEBUG)
|
||||
public const string REDIRECT_URI = "https://localhost:3003/redirect";
|
||||
#else
|
||||
public const string REDIRECT_URI = "https://qboauth.ayanova.com/redirect";
|
||||
public const string REDIRECT_URI = "https://qboauth.ayanova.com/redirect";
|
||||
#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,7 +241,8 @@ namespace qbridge.Controllers
|
||||
var token = TOKEN_STORE.FirstOrDefault(pair => pair.Key == state);
|
||||
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();
|
||||
}
|
||||
else
|
||||
@@ -250,9 +250,6 @@ namespace qbridge.Controllers
|
||||
return Ok(token);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user