Skip to content

Commit 0eca116

Browse files
Add default entra app ID for Snowflake (#2267)
1 parent 94bc145 commit 0eca116

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
@@ -20,8 +20,7 @@
2020

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

2625

2726
@unique

test/unit/test_auth_workload_identity.py

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

285285

0 commit comments

Comments
 (0)