<#3321 refactor(taps): Delay stream request authen...
# meltano-repo-activity
g
#3321 refactor(taps): Delay stream request authentication until right before the request is sent, so the request is re-authenticated if it needs to be retried Pull request opened by edgarrmondragon ## Related • #3320 ## Summary by Sourcery Delay authentication of RESTStream requests until just before sending to enable re-authentication on retries and update related tests accordingly Enhancements: • Apply authenticator to PreparedRequest in _request instead of using session.auth • Remove session.auth assignment in build_prepared_request and prepare_request • Include path_url from the authenticated request in request metrics Tests: • Use t.cast to type the RESTStream in authentication tests • Update test_requests_library_auth to verify no auth header on prepare and header added by invoking the authenticator • Refactor deprecated warning tests to use t.cast for stream parameter meltano/sdk