singer_sdk.authenticators.OAuthJWTAuthenticator

class singer_sdk.authenticators.OAuthJWTAuthenticator[source]

API Authenticator for OAuth 2.0 flows which utilize a JWT refresh token.

__init__(*args, private_key=None, private_key_passphrase=None, **kwargs)[source]

Create a new JWT authenticator.

Parameters:
  • args (Any)

  • private_key (str | None)

  • private_key_passphrase (str | None)

  • kwargs (Any)

Return type:

None

property oauth_request_body: dict[source]

Return request body for OAuth request.

Returns:

Request body mapping for OAuth.

property oauth_request_payload: dict[source]

Return request payload for OAuth request.

Returns:

Payload object for OAuth.

Raises:
property private_key: str | None[source]

Return the private key to use in encryption.

Returns:

Private key from stream config.

property private_key_passphrase: str | None[source]

Return the private key passphrase to use in encryption.

Returns:

Passphrase for private key from stream config.