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

adding proxy url support for signing via header #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sarang4
Copy link

@sarang4 sarang4 commented Apr 1, 2020

If there is HTTP proxy (forward proxy) is present in the network, connects to the service provider domain, then your app has to use a proxy domain. For such cases, signing has to happen with the service provider domain, not with HTTP proxy domain.

@@ -80,6 +80,9 @@ public String getMethod() {

@Override
public String getRequestUrl() {
if (this.request.header("X-PROXY-CUSTOM-URL") != null) {
Copy link
Owner

Choose a reason for hiding this comment

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

What kind of header is X-PROXY-CUSTOM-URL? Looks to be a custom proprietary header which this library should have no knowledge about.

Copy link
Author

Choose a reason for hiding this comment

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

header name can be anything, gave this so that anyone using this library can use it.

Copy link
Author

Choose a reason for hiding this comment

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

Via headers, we can pass information of actual service provider URLs

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