Skip to content

Commit fc60054

Browse files
sfc-gh-pmansoursfc-gh-pczajka
authored andcommitted
Add default entra app ID for Snowflake (#2267)
1 parent f8bcf17 commit fc60054

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/snowflake/connector/wif_util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424

2525
logger = logging.getLogger(__name__)
2626
SNOWFLAKE_AUDIENCE = "snowflakecomputing.com"
27-
# TODO: use real app ID or domain name once it's available.
28-
DEFAULT_ENTRA_SNOWFLAKE_RESOURCE = "NOT REAL - WILL BREAK"
27+
DEFAULT_ENTRA_SNOWFLAKE_RESOURCE = "api://fd3f753b-eed3-462c-b6a7-a4b5bb650aad"
2928

3029

3130
@unique

test/unit/test_auth_workload_identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def test_explicit_azure_uses_default_entra_resource_if_unspecified(
283283
token = fake_azure_metadata_service.token
284284
parsed = jwt.decode(token, options={"verify_signature": False})
285285
assert (
286-
parsed["aud"] == "NOT REAL - WILL BREAK"
286+
parsed["aud"] == "api://fd3f753b-eed3-462c-b6a7-a4b5bb650aad"
287287
) # the default entra resource defined in wif_util.py.
288288

289289

0 commit comments

Comments
 (0)