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

[Test Proxy] Sanitize OAuth requests/responses throughout SDK by default #34866

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tools/azure-sdk-tools/devtools_testutils/proxy_startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from .config import PROXY_URL
from .helpers import get_http_client, is_live_and_not_recording
from .sanitizers import add_remove_header_sanitizer, set_custom_default_matcher
from .sanitizers import add_oauth_response_sanitizer, add_remove_header_sanitizer, set_custom_default_matcher


load_dotenv(find_dotenv())
Expand Down Expand Up @@ -339,6 +339,7 @@ def start_test_proxy(request) -> None:
headers_to_ignore = "Authorization, x-ms-client-request-id, x-ms-request-id"
add_remove_header_sanitizer(headers=headers_to_ignore)
set_custom_default_matcher(excluded_headers=headers_to_ignore)
add_oauth_response_sanitizer()


def stop_test_proxy() -> None:
Expand Down