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

Error when authorising Anilist #1360

Open
5 tasks done
GitGitu79 opened this issue Dec 18, 2024 · 4 comments
Open
5 tasks done

Error when authorising Anilist #1360

GitGitu79 opened this issue Dec 18, 2024 · 4 comments
Labels
Bug Something isn't working

Comments

@GitGitu79
Copy link

Steps to reproduce

  1. Go to Setting > Tracker
  2. Click anilist
  3. Log in prompt in webview
  4. I'm using bitwarden, so the user & password field will prompt me to open my bitwarden vault
  5. Opening bitwarden vault
  6. Autofill my username & password
  7. Webview gone (??)
  8. Do step 2 again
  9. Webview gives {"error":"invalid_client","message":"Client authentication failed"}

Expected behavior

  • The webview should give the same log in prompt even after the authorisation failed
  • Webview should not disappear just because it's not in focus

Actual behavior

  • Webview disappear when I'm opening my password manager vault
  • reauthorising failed

LNReader version

v.2.0.0-beta.3

Android version

Android 13

Device

Samsung Galaxy M12

Other details

Screenshot_20241218_143609_Chrome

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • I have written a short but informative title.
  • If this is an issue with a source, I should be opening an issue in the sources repository.
  • I have updated the app to version 2.0.0.
  • I will fill out all of the requested information in this form.
@GitGitu79 GitGitu79 added the Bug Something isn't working label Dec 18, 2024
@GitGitu79
Copy link
Author

Weirdly this webview behaviour only happen to tracker login and anilist & myanimelist in the browse tab. It also open in a new window. See this screen record below:

note: No, I did not close that window, it does it automatically

ScreenRecording_20241218_151211.2.mp4

Meanwhile webview for the plugin do not do this, it open in the app itself and does not pose the same problem

ScreenRecording_20241218_153125.2.mp4

@MrVantes
Copy link

MrVantes commented Dec 23, 2024

Reproduced the issue:

Steps followed:

  1. Opened LNReader 2.0.0-beta.3 on Android 15 (Device: sdk_gphone64_x86_64/Pixel).
  2. Opened the Settings > Tracking.
  3. Clicked on Anilist.
  4. Shows Anilist login page in Chrome.
  5. Entered my email and password (w/o using password manager).
  6. shows this screen after a short load. Sentence reads: {"error":"invalid_client","message":"Client authentication failed"}
  7. Additionally myanimelist would not even accept the correct username and password.

image

Additional findings:

  • The issue occurs with or without a password manager.
  • Even myanimelist would not work.

Please let me know if you need more information to help resolve this!

@MrVantes
Copy link

The issue stems from either:

  • Anilist and MyAnimeList API was deactivated.
  • The ID was not loaded correctly by .env or from secret.

@rajarsheechatterjee
Copy link
Member

Yes, the Client IDs appear to have been removed during the release build generation, causing this issue. You can use a build from the latest commit artifacts, which should include the Client IDs and resolve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants