singer_sdk.authenticators.APIAuthenticatorBase¶
- class singer_sdk.authenticators.APIAuthenticatorBase[source]¶
Base class for offloading API auth.
- __call__(r)[source]¶
Authenticate a request.
Calls
authenticate_request()
and returns the result.- Parameters:
r (PreparedRequest) – A
requests.PreparedRequest
object.- Returns:
The authenticated request object.
- Return type:
- __init__(stream)[source]¶
Init authenticator.
- Parameters:
stream (RESTStream) – A stream for a RESTful endpoint.
- Return type:
None
- authenticate_request(request)[source]¶
Authenticate a request.
- Parameters:
request (PreparedRequest) – A
requests.PreparedRequest
object.- Returns:
The authenticated request object.
- Return type: