victorbalssa / abacus

🟠 Abacus: Firefly III mobile application.
https://apps.apple.com/us/app/1627093491
GNU General Public License v3.0
554 stars 41 forks source link

BUG: Custom CA certificate throw error on OAuth login. #246

Closed depahk closed 7 months ago

depahk commented 9 months ago

Describe the bug During the initial setup of the app both with oAuth or Personal Access Token, i receive error duting the confirmation. You can see below the error (italian version, I hope you can understand the error).

To Reproduce With OAuth after the redirect to "abacusfiiiapp://redirect" I receive a translated version of something like "Failed to recover accessToken, Netowk request failed. With Personal Access Token after the clik on "Log in", "accessToken validation failed, please check your token or backend URL".

Expected behavior Succesfully config :D

Screenshots photo_2024-02-05_18-24-48 photo_2024-02-05_18-24-51

Smartphone (please complete the following information):

Additional context I suspect the the issue come with a custom certificate generated from my internal CA.

victorbalssa commented 9 months ago

Hey @depahk

I suspect the the issue come with a custom certificate generated from my internal CA.

⬆️ That's the issue, related to this comment I will update the issue title to track my progress on this.

depahk commented 9 months ago

Perfect, I didn't see the previous comment :( Thanks for the app, it seems really "wow"! I look forward to trying it!

paulcalabro commented 8 months ago

@depahk

Just FYI,I have it working with a custom local root CA. You might find my notes here helpful:

https://github.com/victorbalssa/abacus/issues/256

tl;dr: you should configure your phone to trust the custom local root CA.

victorbalssa commented 7 months ago

Done in 0.13.2. Let me know if there is still an issue with this.

depahk commented 7 months ago

Sorry to be late. Unfortunately @paulcalabro suggestion don't fix my issue. Also when I opened this issue, I did the test with a local truest CA by my phone and by traefik.

victorbalssa commented 7 months ago

Hey @depahk,

Can you retry the same test with the new version 0.13.2 available here?

I hope it will fix this issue.

Thanks

depahk commented 7 months ago

Tested now: same errors

photo_2024-03-10_23-39-02 photo_2024-03-10_23-39-00

To be clear: there is network reachability in fact I can use my firefly instance on mobile with Firefox and with Waterfly III app ( C: )

victorbalssa commented 7 months ago

I changed only iOS for 0.13.2, but will check again on Android.