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

Exclude query parameters when caching authentication info #3862

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

agherardi
Copy link
Contributor

@agherardi agherardi force-pushed the authCache branch 2 times, most recently from 6ab0021 to dc8d4e7 Compare June 18, 2018 14:53
@@ -247,7 +246,22 @@ public void filter(ClientRequestContext request, ClientResponseContext response)
}

private String getCacheKey(ClientRequestContext request) {
return request.getUri().toString() + ":" + request.getMethod();
URI requestUri = request.getUri();
Copy link
Contributor

Choose a reason for hiding this comment

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

This method duplicates code from DigestAuthenticator#getCacheKey. Does it make sense to put the code to a new static method to a new utility AuthenticationUtil class in the package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, asbolutely. Done.

@agherardi agherardi force-pushed the authCache branch 2 times, most recently from e3d8d43 to c74a9ac Compare June 20, 2018 14:45
@jansupol jansupol merged commit 501befb into eclipse-ee4j:master Jun 21, 2018
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.

2 participants