Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/flyte/cli/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ def sanitize_auth_type(auth_type: str | None) -> str:
"""
Convert the auth type to the mode that is used by the Flyte backend.
"""
if auth_type is None:
return "pkce"
if auth_type.lower() in _pkce_options:
if auth_type is None or auth_type.lower() in _pkce_options:
return "Pkce"
if auth_type.lower() in _device_flow_options:
return "DeviceFlow"
Expand Down
Loading