singer_sdk.authenticators.OAuthJWTAuthenticator¶
- class singer_sdk.authenticators.OAuthJWTAuthenticator(stream: singer_sdk.streams.core.Stream, auth_endpoint: Optional[str] = None, oauth_scopes: Optional[str] = None, default_expiration: Optional[int] = None)¶
API Authenticator for OAuth 2.0 flows which utilize a JWT refresh token.
- property oauth_request_body: dict¶
Return request body for OAuth request.
- Returns
Request body mapping for OAuth.
- property oauth_request_payload: dict¶
Return request paytload for OAuth request.
- Returns
Payload object for OAuth.
- Raises
ValueError – If the private key is not set.
- property private_key: Optional[str]¶
Return the private key to use in encryption.
- Returns
Private key from stream config.
- property private_key_passphrase: Optional[str]¶
Return the private key passphrase to use in encryption.
- Returns
Passphrase for private key from stream config.