Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Problem After Locally Delete Account And Login Again With Same Account #12653

Closed
4 tasks done
alperozturk96 opened this issue Mar 6, 2024 · 1 comment · Fixed by nextcloud/android-library#1387

Comments

@alperozturk96
Copy link
Collaborator

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Add account
  2. Delete added account
  3. Try to add same account again
  4. Login
  5. Can't able to fetch quota info and can't able to access encrypted folder or can't able to create encrypted folder
e2e2_fail.mp4

Expected behaviour

Deleting adding same account shouldn't affect functionality of app

Actual behaviour

App functionality broken when deleting and adding same account again

Android version

14

Device brand and model

Android Emulator

Stock or custom OS?

Stock

Nextcloud android app version

3.29.0 Alpha 1

Nextcloud server version

28.0.2

Using a reverse proxy?

No

Android logs

No response

Server error logs

No response

Additional information

No response

@alperozturk96
Copy link
Collaborator Author

alperozturk96 commented Mar 6, 2024

DeleteAppPasswordRemoteOperation execution during remove account process causes this problem

LoginFlow

"/ocs/v2.php/core/apppassword" This operation deletes the app token, but the iOS Files app does not utilize this endpoint but they are renewing token with getAppPassword endpoint, in Android we are not using this endpoint.

During testing, I observed that the deletion process and re-logging worked seamlessly even without this operation. Since iOS does not utilize it either, we might consider removing this operation but we should generate new token after login. @tobiasKaminsky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants