PhilippC / PhilippC/keepass2android

[BUG] pCloud login fails when switching to authenticator app

Open
#2,570 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
6.2k
Forks
478
Avg merge
1h 4m
Merged PRs (30d)
2

Description

Checks
  • I have read the FAQ section, searched the open issues, and still think this is a new bug.
Describe the bug you encountered:

I'm trying to access the database in my pCloud account using the storage type pCloud (Full access). My pCloud account is protected by 2FA, I have the authenticator app on the same phone I'm using KeePass2Android on. Unfortunately, the flow is broken:

  1. Select pCloud (Full Access) as storage type.
  2. Enter your username, then your password. The app asks for the TOTP.
  3. Switch to the authenticator app and copy the TOTP code.
  4. Switch back to KeePass2Android to enter the code. However, the moment I switch back, the login window goes away with a notification bubble saying Login failed.
Describe what you expected to happen:

Since the authenticator app will usually be on the same phone, the login flow needs to support switching to a different app and not abort immediately.

Right now the only way to get this working is to have the database open in KeePass on another device and manually type in the current TOTP code.

What version of Keepass2Android are you using?

1.10-pre

Which version of Android are you on?

14

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the pCloud (Full access) login flow through the TOTP step on Android 14, then reproduce it by switching to an authenticator app and back. Done means the login window remains available after switching apps and accepts the copied code to complete authentication.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
authentication, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.