Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for enabling JWKS caching #468

Open
1 task done
tricki opened this issue Dec 30, 2024 · 0 comments
Open
1 task done

Add instructions for enabling JWKS caching #468

tricki opened this issue Dec 30, 2024 · 0 comments

Comments

@tricki
Copy link

tricki commented Dec 30, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant