Skip to content

Commit

Permalink
Relaxed argument validation for authenticator
Browse files Browse the repository at this point in the history
  • Loading branch information
littleK0i committed Dec 6, 2024
1 parent 1051c16 commit 32b93c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.37.4] - 2024-12-06

- Relaxed argument validation for `oauth_snowpark` authenticator.

## [0.37.3] - 2024-12-06

- Added `oauth_snowpark` authenticator to simplify running SnowDDL inside Snowpark containers.
Expand Down
5 changes: 4 additions & 1 deletion snowddl/app/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,12 @@ def validate_auth_args(self, args):
if args["authenticator"] == "snowflake":
if not args["a"] or not args["u"] or (not args["p"] and not args["k"] and "SNOWFLAKE_PRIVATE_KEY" not in environ):
return False
elif args["authenticator"] in ("externalbrowser", "oauth_snowpark"):
elif args["authenticator"] == "externalbrowser":
if not args["a"] or not args["u"]:
return False
elif args["authenticator"] == "oauth_snowpark":
if not args["a"]:
return False
elif args["authenticator"] is not None:
return False

Expand Down
2 changes: 1 addition & 1 deletion snowddl/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.37.3"
__version__ = "0.37.4"

0 comments on commit 32b93c3

Please sign in to comment.