Checklist
Description
Our logs show the following error:
Unable to complete network request; cURL error 7: Failed to connect to *.eu.auth0.com port 443 after 2002 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://*.eu.auth0.com/.well-known/jwks.json
After some searching, the solution is apparently to enable JWKS caching. But I'm unsure how to do that using the Laravel SDK. I see there is a Configuration::CONFIG_TOKEN_CACHE configuration, which I think is the correct setting, but I'm unsure as to what exactly I should configure (e.g. the expected interface).
My approach would probably be to have a longer-lasting cache, but refreshing it regularly, after it's used.
As an alternative, maybe being able to modify the timeout (2s), or number of retries might also solve this problem.
Note that we've only experienced this once, so it might just have been a one-time event. But I'd still like to prevent this from happening again, if possible.
Thanks!
Checklist
Description
Our logs show the following error:
After some searching, the solution is apparently to enable JWKS caching. But I'm unsure how to do that using the Laravel SDK. I see there is a
Configuration::CONFIG_TOKEN_CACHEconfiguration, which I think is the correct setting, but I'm unsure as to what exactly I should configure (e.g. the expected interface).My approach would probably be to have a longer-lasting cache, but refreshing it regularly, after it's used.
As an alternative, maybe being able to modify the timeout (2s), or number of retries might also solve this problem.
Note that we've only experienced this once, so it might just have been a one-time event. But I'd still like to prevent this from happening again, if possible.
Thanks!