singer_sdk.authenticators.BearerTokenAuthenticator¶
- class singer_sdk.authenticators.BearerTokenAuthenticator[source]¶
- Implements bearer token authentication for REST Streams. - This Authenticator implements Bearer Token authentication. The token is a text string, included in the request header and prefixed with ‘Bearer ‘. The token will be merged with HTTP headers on the stream. - __init__(stream, token)[source]¶
- Create a new authenticator. - Parameters:
- stream (RESTStream) – The stream instance to use with this authenticator. 
- token (str) – Authentication token. 
 
- Return type:
- None 
 
 - classmethod create_for_stream(stream, token)[source]¶
- Create an Authenticator object specific to the Stream class. - Parameters:
- stream (RESTStream) – The stream instance to use with this authenticator. 
- token (str) – Authentication token. 
 
- Returns:
- A new
- singer_sdk.authenticators.BearerTokenAuthenticatorinstance.
 
- Return type: