Bug 417413 - "Authentication method is not known" when adding a Google account
Summary: "Authentication method is not known" when adding a Google account
Status: RESOLVED DOWNSTREAM
Alias: None
Product: KAccounts
Classification: Frameworks and Libraries
Component: KCM (show other bugs)
Version: 19.12
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-11 09:12 UTC by Bart Ribbers
Modified: 2020-02-12 10:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!