snowflake.snowpark.secrets.get_oauth_access_token

snowflake.snowpark.secrets.get_oauth_access_token(secret_name: str) str[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.41.0/src/snowflake/snowpark/secrets.py#L43-L60)

Get an OAuth2 access token from Snowflake. .. note:: Require a Snowflake environment with OAuth secrets configured

Returns:

The OAuth2 access token as a string.

Raises:

NotImplementedError – If the _snowflake module cannot be imported.

语言: 中文