← Back to issue list

snapcraft login fails if account does not require two factor authentication

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1539208
Type
issue
State
closed
Author
~ricardokirkner
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #274 fixed login by including OTP only when non-empty (commit cd3f46aa1; merge 1fc4fdffc).

Resolution: closed resolved

Reason: PR #274 changed the store login request to include the OTP field only when it is non-empty, allowing accounts without two-factor authentication to sign in successfully.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Attempting to login via 'snapcraft login' using an account that doesn't require two-factor authentication fails as the OTP code is being submitted (empty) anyway.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #274 fixed login by including OTP only when non-empty (commit cd3f46aa1; merge 1fc4fdffc).
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #274 (cd3f46aa1): login now omits an empty OTP, allowing accounts without two-factor authentication to sign in.
qwen/qwen3.6-35b-a3b — — Closed without a documented fix. The report indicates snapcraft login fails for accounts without two-factor authentication by incorrectly submitting an empty OTP code.
qwen/qwen3.6-35b-a3b — — snapcraft login fails for accounts without two-factor authentication due to an empty OTP submission. Closed without a fix or discussion, indicating it was abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Closed without comments or resolution details. Snapcraft login fails for accounts without two-factor authentication due to an empty OTP submission. Likely abandoned or resolved silently.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#274 (confidence 100%)

    The merged PR directly implements the fix for LP #1539208.

Related issues

Issue Project State Summary Similarity
#1621710 snapcraft login does not match the UX spec snapcraft (launchpad) closed Fixed by merged snapcore/snapcraft PR #804 (commit bee0b41ba), aligning snapcraft login with the UX spec, including conditional 2FA and MFA guidance.
77%
#274 make sure otp is included in login request only if it's not empty snapcraft merged PR #274 merged into snapcraft; commit cd3f46aa1 makes the store login request include the OTP field only when it is non-empty, fixing LP #1539208.
76%
#1649356 snapcraft login should guide towards account creation snapcraft (launchpad) closed Login prompt now points users to account creation. Fixed by merged PR #1616 (commit cbaf2990e, "store: guide to account creation upon login"); later refined by #2280 to use snapcraft.io/account.
73%