Resolve #172, Enable HTTP Proxy Support for iControlRESTTokenAuth
Object
#173
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.
@jasonrahm
What issues does this address?
Fixes #172
What's this change do?
Enable HTTP Proxy support in the
iControlRESTTokenAuth
object by passing theproxies
fromiControlRESTSession
object down into it, and applying it to therequest.<verb>
calls that take place in that module.Where should the reviewer start?
icontrol/authtoken.py, line 58, then follow it through the
self.proxies
value in that object.icontrol/session.py, line 432, then follow where
self.proxies
was passed as an argument to the underlying token/auth object.Any background context?
This change is required for full HTTP Proxy functionality.
Otherwise, while the outer
requests.Session
object iniControlRESTSession
does attempt to utilize the proxies provided to it, the inner token acquisition and validation methods iniControlRESTTokenAuth
fail as they do not know about the proxy.