-
Notifications
You must be signed in to change notification settings - Fork 56
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
DOM-40791 Integrate with Domino API Proxy #154
DOM-40791 Integrate with Domino API Proxy #154
Conversation
b6cffe5
to
a1ebc09
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very reasonable
def __init__(self, api_proxy): | ||
self.api_proxy = api_proxy | ||
|
||
def __call__(self, r): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we update the header here as well, stating the auth method?
return r | ||
|
||
def __initialize__(self, session): | ||
session.proxies.update({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or maybe here.
domino/authentication.py
Outdated
""" | ||
|
||
if auth_token is not None: | ||
if api_proxy is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if api_proxy:
is also another option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add some test for the proxy usage on here as well?
we can validate get_auth_by_type
and maybe test an api call using the api_proxy, with a 200 return?
9082a2a
to
2228b8a
Compare
Link to JIRA
DOM-40791
What issue does this pull request solve?
Integrate the new Domino API Proxy into all API calls.
What is the solution?
Domino API Proxy is given precedence over all other auth types, both explicit, or implicit through environment variables.
Testing
Briefly describe how the change was tested. The purpose of this section is that a reviewer can identify a test gap, if any.
e.g. "I ran an upgrade from 4.2 to 4.6".
Pull Request Reminders
References (optional)