Skip to content

Fix subtle auth sequencing issue#44

Merged
stevemessick merged 2 commits into
mainfrom
fix-auth-sync
May 29, 2026
Merged

Fix subtle auth sequencing issue#44
stevemessick merged 2 commits into
mainfrom
fix-auth-sync

Conversation

@stevemessick
Copy link
Copy Markdown
Contributor

@stevemessick stevemessick requested a review from rosbo May 28, 2026 22:25
if not kaggle_json or not kaggle_json.strip():
return None

api_key_data = json.loads(kaggle_json)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this relate to setting the config? I am not sure I follow. This seems it would prevent failure if the kaggle.json file is malformed.

kaggle config set -n competition -v <competition-slug>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I get it, kaggle config set is saving it's value in kaggle.json.

username = api_key_data["username"]
api_key = api_key_data["key"]
return username, api_key
try:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a command here saying

kaggle config set saves value in the kaggle.json file. The credentials may not be available.

@stevemessick stevemessick merged commit 3a6cfd1 into main May 29, 2026
6 checks passed
@stevemessick stevemessick deleted the fix-auth-sync branch May 29, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OAuth authentication fails after kaggle config set creates kaggle.json

2 participants