Tusky icon indicating copy to clipboard operation
Tusky copied to clipboard

Browser-based login does not work

Open puckipedia opened this issue 1 year ago • 11 comments

Detailed description

When I return from browser-based OAuth, the domain, clientId, and clientSecret variables are all blank (never persisted to storage), and authentication fails with "An unidentified authorization error occurred.".

Steps to reproduce the problem

No response

Debug information

Tusky Test 26.0-0f3dd64c Google Pixel 6 Android version: 14 SDK version: 34

The account is on my own server software, which implements the right API contract for returning an OAuth code to Tusky (verified with a debugger).

puckipedia avatar Jul 30 '24 08:07 puckipedia

Hi, have you also tried the "Login with Browser" item from the three-dots menu on the login screen?

Tak avatar Aug 05 '24 12:08 Tak

Yes, that's what I meant with "Browser-based OAuth".

puckipedia avatar Aug 05 '24 12:08 puckipedia

Ok, but then it does work with the default embedded webview?

Tak avatar Aug 05 '24 12:08 Tak

No; using the embedded webview on my server shows the following (which is correct, it requires Basic auth and, sometimes, webauthn): Screenshot_20240805-150941

And using the browser lets me log in, but returns "An unidentified authorisation error has occurred", which, after running Tusky in a debugger, is caused by the issue I specified in the issue.

puckipedia avatar Aug 05 '24 13:08 puckipedia

In fact, testing with the most recent version of Tusky available in F-Droid (26.0), I cannot even log in to mastodon.social using the browser based flow, as the issue I mentioned isn't caused by any API call.

puckipedia avatar Aug 05 '24 13:08 puckipedia

just tried m.s. with tusky 26 from f-droid and it works. probably the only difference between your setup and mine is WebView

charlag avatar Aug 05 '24 13:08 charlag

oh sorry you meant browser-flow, missed that

charlag avatar Aug 05 '24 13:08 charlag

can confirm, browser-based login didn't work for me with m.s.

Screenshot_20240805-155121

charlag avatar Aug 05 '24 13:08 charlag

Could this be the problem? https://github.com/zacharee/MastodonRedirect/issues/25

tiptoptom avatar Aug 12 '24 05:08 tiptoptom

Having same issue with browser-based login. Same error as per @charlag above. Android 10, version 26.0 of Tusky app.

edwardp3 avatar Aug 19 '24 19:08 edwardp3

Same problem here, pixel 8, latest os, tusky 26.1, can’t login to chaos.social.

ma3s7r0 avatar Aug 26 '24 05:08 ma3s7r0

Any chance this is going to be released in the Google play store soon? At least in the beta channel?

I can't use Tusky until that happens

(Edit: OMG thank you!)

jamagin avatar Dec 03 '24 01:12 jamagin