Skip to content

Commit d8b5bfd

Browse files
committed
Adding comments
1 parent 7eaeebb commit d8b5bfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mssql_python/auth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def get_auth_token(auth_type: str) -> Optional[bytes]:
124124
return AADAuth.get_default_token()
125125
elif auth_type == "devicecode":
126126
return AADAuth.get_device_code_token()
127+
# If interactive authentication is requested, use InteractiveBrowserCredential
128+
# but only if not on Windows, since in Windows: AADInteractive is supported.
127129
elif auth_type == "interactive" and platform.system().lower() != "windows":
128130
return AADAuth.get_interactive_token()
129131
return None

0 commit comments

Comments
 (0)