Add forward proxy for verify auth token #1966
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add forward proxy for checking auth token. Optional proxy could be like http://proxy.domain.com:8080
Description
The http_client is now using a forward proxy if this is configured in the config.toml. So you're able to operate the syncstorage-rs server in a security environment where a server has no direct access to internet.
In this case the server is not able to verify the auth token from for example https://oauth.accounts.firefox.com and the you'll get the follwing error message in the log:
Error requesting remote jwks: error sending request for url (https://oauth.accounts.firefox.com/v1/jwks)
This resolves the follwing isseu #1964
Testing
Add the following line to config.toml
tokenserver.fxa_oauth_request_proxy = "http://proxy.domain.com:8080"