prefect_snowflake.credentials
Credentials block for authenticating with Snowflake.
Classes
InvalidPemFormat
Invalid PEM Format Certificate
SnowflakeCredentials
Block used to manage authentication with Snowflake.
Args:
account: The snowflake account name.user: The user name used to authenticate.password: The password used to authenticate.private_key: The PEM used to authenticate.authenticator: The type of authenticator to use for initializing connection (oauth, externalbrowser, etc); refer to Snowflake documentation for details, and note thatexternalbrowserwill only work in an environment where a browser is available.workload_identity_provider: The workload identity provider to use when authenticator is set toworkload_identity.token: The OAuth or JWT Token to provide when authenticator is set tooauth, or workload_identity_provider is set tooidc.endpoint: The Okta endpoint to use when authenticator is set tookta_endpoint, e.g.https\://<okta_account_name>.okta.com.role: The name of the default role to use.autocommit: Whether to automatically commit.
get_client
**connect_kwargs: Additional arguments to pass tosnowflake.connector.connect.
- An authenticated Snowflake connection.
resolve_private_key
- DER encoded key if private_key has been provided otherwise returns None.
InvalidPemFormat: If private key is not in PEM format.