class singer_sdk.authenticators.BearerTokenAuthenticator(stream: singer_sdk.streams.core.Stream, token: str)

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.

classmethod create_for_stream(stream: singer_sdk.streams.core.Stream, token: str) singer_sdk.authenticators.BearerTokenAuthenticator

Create an Authenticator object specific to the Stream class.

  • stream – The stream instance to use with this authenticator.

  • token – Authentication token.


A new singer_sdk.authenticators.BearerTokenAuthenticator instance.