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

HTTP Caching #63

Merged
merged 4 commits into from
Aug 6, 2024
Merged

HTTP Caching #63

merged 4 commits into from
Aug 6, 2024

Conversation

holesch
Copy link
Owner

@holesch holesch commented Aug 6, 2024

The Hub needs to fetch data from the issuer to verify ID tokens. To not fetch the data for every user authentication, cache the responses from the issuer.

holesch added 4 commits August 4, 2024 00:08
To implement caching, the http module needs to parse response headers.
Create a new response object, that stores headers for further
processing.
This is a simple implementation which requires users to manage cache
objects per request. It doesn't implement conditional requests for
revalidation, instead it fetches the complete content again, as soon as
the cached response is stale.
The Validator needs to fetch the OpenID Connect configuration and the
signing keys of the issuer every time it wants to authenticate a user.
Since this can happen quite frequently in the Hub, cache the responses.
@holesch holesch merged commit 1c99cd1 into master Aug 6, 2024
9 checks passed
@holesch holesch deleted the http-caching branch August 22, 2024 22:10
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

Successfully merging this pull request may close these issues.

1 participant