Bug 417413

Summary: "Authentication method is not known" when adding a Google account
Product: [Frameworks and Libraries] KAccounts Reporter: Bart Ribbers <bribbers>
Component: KCMAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: wbauer1
Priority: NOR    
Version: 19.12   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bart Ribbers 2020-02-11 09:12:18 UTC
SUMMARY

I'm trying to add a Google account, but after selecting "Google", the window just goes back to the accounts overview. In the CLI it mentions "Authentication method is not known" as the main error.

Also, were adding an ownCloud/Nextcloud account would cause it to report "Looking for plugin 'owncloud_plugin_kaccounts", for Google it reports "Looking for plugin ''". Seems it can't find the plugin even?

STEPS TO REPRODUCE
1. Try to add a Google account to kaccounts via systemsettings

OBSERVED RESULT

No account is added and the user is redirected back to the accounts overview.

EXPECTED RESULT

My Google account to be added...

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Alpine Linux edge
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.5

ADDITIONAL INFORMATION
This is on Alpine Linux where the package is still in the "testing" repository. It _might_ just be a case of missing dependencies but it doesn't look like it.
Comment 1 Wolfgang Bauer 2020-02-11 14:10:44 UTC
I can (only) reproduce this error by uninstalling signon-plugin-oauth2, that is needed by Google for authentification. (it is required on a package level by kaccounts-providers here in openSUSE)

So IMHO it is indeed a missing dependency in your distribution.

Look if that package is available and install it manually, that should fix your problem.
Comment 2 Bart Ribbers 2020-02-11 14:41:04 UTC
Well, installing that changes the error, but it doesn't change UI behaviour.

"google"
Looking for plugin ""
Starting auth session with "oauth2"
Info:
        Id: 9
        caption: "google"
        owner: ""
        userName: ""
Error:
         "userActionFinished error: 2"
Comment 3 Wolfgang Bauer 2020-02-12 06:34:17 UTC
(In reply to Bart Ribbers from comment #2)
> Well, installing that changes the error, but it doesn't change UI behaviour.
You mean you still don't get a login window?
THen check that signon-ui is installed. And maybe try to run "signon-ui" manually before trying to add the google account (shouldn't normally be necessary to do that manually though, it should get autostarted).
Comment 4 Bart Ribbers 2020-02-12 10:44:08 UTC
Yup, that solved it, thanks!