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

Prevent userinfo endpoint from being cached #99

Merged
merged 2 commits into from Sep 21, 2023

Conversation

ashfame
Copy link
Member

@ashfame ashfame commented Sep 20, 2023

This PR adds both no-caching headers and DONOTCACHEPAGE constant from preventing userinfo endpoint from getting cached.

@ashfame ashfame self-assigned this Sep 20, 2023
Copy link
Member

@psrpinto psrpinto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@psrpinto
Copy link
Member

Should we add this on all endpoints?

@akirk
Copy link
Member

akirk commented Sep 21, 2023

I talked to @ashfame about this before and he told me that it already was at least on some endpoints, such as the token endpoint.

@ashfame
Copy link
Member Author

ashfame commented Sep 21, 2023

Yep! Authorize endpoint has diff GET params, so that doesn't get cached. Token endpoint does have the headers set by bshaffer lib.

@ashfame ashfame merged commit e2a0b14 into main Sep 21, 2023
1 check passed
@ashfame ashfame deleted the prevent_userinfo_endpoint_caching branch September 21, 2023 10:26
@psrpinto psrpinto mentioned this pull request Sep 22, 2023
@ashfame ashfame mentioned this pull request Dec 8, 2023
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.

None yet

3 participants