Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,4 @@ coverage.*
#hiivmind
.hiivmind/github/user.yaml
.benchmarks/
.superpowers/
4 changes: 2 additions & 2 deletions src/mountainash_data/core/settings/adapters/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def token(auth, base):


def oauth2(auth, base):
# token-only: never reads CLIENT_ID/SECRET/SERVER_URI/SCOPE (smell #1)
return {**base, "authenticator": "oauth", "token": auth.TOKEN.get_secret_value()}
# token-only: never reads CLIENT_ID/SECRET/SCOPE (smell #1)
return {**base, "authenticator": "oauth", "token": auth.ACCESS_TOKEN.get_secret_value()}


def certificate(auth, base):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_snowflake_token_oauth():


def test_snowflake_oauth2_token_only():
assert _snow.oauth2(OAuth2AuthProfile(TOKEN="t"), {}) == {"authenticator": "oauth", "token": "t"}
assert _snow.oauth2(OAuth2AuthProfile(ACCESS_TOKEN="t"), {}) == {"authenticator": "oauth", "token": "t"}


def test_snowflake_password():
Expand Down
Loading