android icon indicating copy to clipboard operation
android copied to clipboard

Login Flow v2

Open alperozturk96 opened this issue 1 year ago • 3 comments

  • [x] Tests written, or not not needed

Improvements

Login Flow v2 used instead of v1. Documentation

Instead of using WebView default web browser used for login.

How to Test

Open app tap login button default web browser must appear, enter user info go back to app manually, app should try to login automatically

Try to login via Scanning QR Code

Note

If user didn't complete login flow inside default web browser and get back to app, app will redirect to default web browser again

Edge cases

Can we redirect automatically back to the app after login from web browser? --> Answer

If we add deeplink to the "/login/v2/grant" this endpoint we may trigger to get back to app automatically.

Demo

https://github.com/nextcloud/android/assets/67455295/6e9da91f-90e9-4739-b894-1ad2595efdd3

alperozturk96 avatar Apr 23 '24 15:04 alperozturk96

Codacy

Lint

TypemasterPR
Warnings7171
Errors33

SpotBugs

CategoryBaseNew
Bad practice6767
Correctness7272
Dodgy code345345
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness66
Performance5757
Security1919
Total576576

github-actions[bot] avatar Apr 29 '24 10:04 github-actions[bot]

blue-Light-Screenshot test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/12922-Screenshot-blue-Light-10-43

github-actions[bot] avatar Apr 29 '24 10:04 github-actions[bot]

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12922.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

github-actions[bot] avatar Apr 29 '24 10:04 github-actions[bot]