Skip to content

Commit b46fc9a

Browse files
fix lint
1 parent d1c46b0 commit b46fc9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/snowflake/connector/wif_util.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,10 @@ def create_azure_attestation(
234234
issuer, subject = extract_iss_and_sub_without_signature_verification(jwt_str)
235235
if not issuer or not subject:
236236
return None
237-
if not (issuer.startswith("https://sts.windows.net/") or issuer.startswith("https://login.microsoftonline.com/")):
237+
if not (
238+
issuer.startswith("https://sts.windows.net/")
239+
or issuer.startswith("https://login.microsoftonline.com/")
240+
):
238241
# This might happen if we're running on a different platform that responds to the same metadata request signature as Azure.
239242
logger.debug("Unexpected Azure token issuer '%s'", issuer)
240243
return None

0 commit comments

Comments
 (0)