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__(*args, token, **kwargs)[source]

Create a new authenticator.

Parameters:
  • *args (Any) – Positional arguments.

  • token (str) – Authentication token.

  • **kwargs (Any) – Keyword arguments.

Return type:

None