Bug 504472

Summary: Tokodon can't authorize via OIDC
Product: [Applications] Tokodon Reporter: Shawn W Dunn <sfalken>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: NEEDSINFO WAITINGFORINFO    
Severity: normal CC: carl, josh
Priority: NOR    
Version First Reported In: 25.04.1   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Shawn W Dunn 2025-05-18 14:43:44 UTC
SUMMARY
When setting up Tokodon, I am unable to finalize the authorization from my Mastodon server.

STEPS TO REPRODUCE
1. flatpak run org.kde.tokodon
2. Select "Use Existing Account"
3. enter "fosstodon.org" into the Server ID Field
4. Press Continue
5. Click on "Open Authorization Page"
6. fosstodon Authorization page opens in Zen Browser
7. Click "Authorize" Button

OBSERVED RESULT
Nothing happens.  

EXPECTED RESULT
Authorization token is passed from the Zen Browser back to Tokodon, and the Fosstodon account loads in Tokodon


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kalpa Desktop, Linux 6.14.6
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
This behavior is consistent for every Mastodon account I have, I'm just using Fosstodon as an example.
It is also consistent if I change my default browser to Firefox, or Vivaldi
Comment 1 Shawn W Dunn 2025-06-02 12:52:02 UTC
As a followup, if I "Copy the authentication link" and paste it into Vivaldi, or some other Chromium based flatpak browser, the Authentication handoff works just fine.

I don't know why it took me this long to think of trying that.  This *appears* to be a Firefox/Zen flatpak issue, but the token handoff works fine for other things like Neochat and Nextcloud flatpaks, with Firefox/Zen, so I'm not certain.
Comment 2 Joshua Goins 2025-09-22 23:53:46 UTC
Can you test on 25.08 now? I tried it against git master & our 25.08 flatpak and had no troubles authorizing now.
Comment 3 Joshua Goins 2025-09-22 23:54:03 UTC
(In reply to Joshua Goins from comment #2)
> Can you test on 25.08 now? I tried it against git master & our 25.08 flatpak
> and had no troubles authorizing now.

Oh and this was against the Zen Browser Flatpak too, for reference.