Topic on Extension talk:GoogleLogin

The supplied credentials are not associated with any user on this wiki

32
Summary by Florianschmidtwelzow
116.68.122.50 (talkcontribs)

Installed mediawiki + GoogleLogin in subdomain http://demo.domainname.com

and added the following in LocalSettings.php

require_once "$IP/extensions/GoogleLogin/GoogleLogin.php";

$wgGLSecret = 'secret key added';

$wgGLAppId = 'client ID added';

$wgGroupPermissions['*']['createaccount'] = false;

$wgGLAllowAccountCreation = true;

But when i click the Login with Google button its showing

" The supplied credentials are not associated with any user on this wiki "

Florianschmidtwelzow (talkcontribs)

What version of MediaWiki and GoogleLogin do you use?

116.68.120.54 (talkcontribs)

MediaWiki   1.27.0

GoogleLogin: REL1_27

Florianschmidtwelzow (talkcontribs)

GoogleLogin for MediaWiki 1.27 does not support the "wgGLAllowAccountCreation option anymore. Please see the Extension:GoogleLogin/PostAuthManager page for setup and configuration instructions of this new version. If you want to have the old version, you can download it from here and test, if it works fine with MediaWiki 1.27.

184.68.85.26 (talkcontribs)

Why did they remove this functionality??? Was it a security vulnerability??? Where are the release notes??? I want to roll back to an older version but do not want to compromise security.

Thanks.

Florianschmidtwelzow (talkcontribs)

In fact, I removed this functionaliyt because I migrated the extension to be a plugin for the new AuthManager authentication system of MediaWiki, which now handles all this stuff. So, it wasn't removed because of secutiry concerns. However, re-adding the functionality to AuthManager (tracked in task T138678 and task T141474) will probably be done later, as we've to clarify, what security topics and use case we need to cover :) You can, however, install an older version of GoogleLogin to have the function back as it was before I migrated the extension.

184.68.85.26 (talkcontribs)

I appreciate your speedy response. We have decided to just do the manual creation for now. I look forward to this functionality returning in a future release :)

Thanks again for your response.

-Cheers

100.35.144.85 (talkcontribs)

The link to Extension:GoogleLogin/PostAuthManager above is broken. How do I link an existing Wiki user to their Google Apps account? I was hoping it would happen automatically via email address but I get the "supplied credentials are not associated" error. (thanks for any information)

72.66.110.252 (talkcontribs)

Have the user login locally, go to the special page and look for Link accounts under Users and rights. It'll let you link it in there.

65.183.224.21 (talkcontribs)

There's a special page "Special:ManageGoogleLogin" that allows an admin to delete links to Google accounts and manually input the user's Google+ ID.

116.68.121.246 (talkcontribs)

Downloaded and installed google login from below url

https://www.mediawiki.org/wiki/Special:ExtensionDistributor/GoogleLogin

Updated with LocalSettings.php with following

require_once "$IP/extensions/GoogleLogin/GoogleLogin.php";

$wgGLSecret = 'xxxx';

$wgGLAppId = 'xxxxxxx.apps.googleusercontent.com';

Still showing

The supplied credentials are not associated with any user on this wiki.

Florianschmidtwelzow (talkcontribs)

Yes, like I said: GoogleLogin for MediaWiki 1.27 does not allow you to register an account with Google anymore (at least not in the way you expect, it seems). If you want the option to create a new wiki account, if the google account is not connected with one already, you need to use an older version (which I linked in my answer before this one). Otherwise, you first have to create a wiki account and then connect it with your google account in order to login with your google account.

116.68.120.102 (talkcontribs)

Installed older version (https://github.com/wikimedia/mediawiki-extensions-GoogleLogin/archive/v0_3_1.zip)

Error showing

[V8z-QsBjyVwAAEQnY3QAAAAI] /index.php?title=Special:GoogleLogin MWException from line 463 of /home/fwhtesta/public_html/extensions/GoogleLogin/includes/GoogleLogin.body.php: GoogleLogin requires the PHP API Client, which you can install with the Extension:GoogleAPIClient or by running composer update.

GoogleAPIClient already installed. See the screenshot http://i.imgur.com/iW6205h.jpg

Florianschmidtwelzow (talkcontribs)

Could you please run composer update in the GoogleLogin directory?

116.68.122.66 (talkcontribs)
Florianschmidtwelzow (talkcontribs)
116.68.123.54 (talkcontribs)

Composer updated, see the screenshot blob:http://imgur.com/69b6a104-838e-4d0f-b126-f7510e91d3e3

But still showing error

Error: redirect_uri_mismatch

Application: mediawiki

You can email the developer of this application at: mail@domainname.com

The redirect URI in the request, http://domainname.com/index.php?title=Special:GoogleLogin, does not match the ones authorized for the OAuth client. Visit https://console.developers.google.com/apis/credentials/oauthclient/xxxxxx.apps.googleusercontent.com?project=xxxxx to update the authorized redirect URIs.

What we need is allow user to signup with google email ids, don't want users create accounts like they normally do.

Florianschmidtwelzow (talkcontribs)
This post was hidden by 116.68.120.130 (history)
116.68.120.130 (talkcontribs)

Its working fine now. Thank you.

Zeropash (talkcontribs)

I have installed the GoogleLogin version GoogleLogin-REL1_27-d7127e6.tar.gz, ran composer update.

I have set

$wgGLSecret, $wgGLAppId , $wgGLAllowedDomains = array('<mydomain.com>');

$wgGLAllowedDomainsStrict = true;

$wgWhitelistRead = array( 'Special:GoogleLoginReturn' );

$wgAuthManagerAutoConfig['primaryauth'] = [];

$wgGroupPermissions['*']['createaccount'] = true;

also as this is a private wiki I have set $wgGroupPermissions['*']['read'] = false;

When I am in a browser where i am logged in to Google Apps , media wiki logs me in.

however if i am not logged in it give me the error "The supplied credentials are not associated with any user on this wiki."

Any idea where i could be going wrong?

Florianschmidtwelzow (talkcontribs)

Please make sure, that you're not logged in with another account, e.g. by navigating to accounts.google.com.

Monikajayanna (talkcontribs)

Hi all, i have configured mediawiki-1.28, php-5.5.9 with nginx-1.4.6 now i am adding google login, i have followed this doc Extension:GoogleLogin/PostAuthManager for google login and after logged in with google account i am getting this error "The supplied credentials are not associated with any user on this wiki"

my LocalSettings.php contain

require_once "$IP/extensions/GoogleLogin/GoogleLogin.php";

$wgGLSecret = ' ';

$wgGLAppId = ' ';

require_once "$IP/extensions/GoogleAppsAuthentication/GoogleAppsAuthentication.php";

$wgWhitelistRead = array( 'Special:GoogleLogin', 'Special:GoogleLoginReturn');

$wgAuthManagerAutoConfig['primaryauth'] = [];

$wgGroupPermissions['*']['createaccount'] = true;

$wgGLAllowAccountCreation = true;

$wgGLReplaceMWLogin = true;

$wgGroupPermissions['*']['read'] = false;

$wgGroupPermissions['*']['edit'] = false;

$wgGroupPermissions['user']['edit'] = true;

$wgGroupPermissions['user']['edit'] = true;

190.0.10.90 (talkcontribs)

Im try to downgrade GoogleLoggin to 1.23 and does'nt work , the web browser display the follow error in the console (Unexpected token '<') im think that the package contains a syntax error but i dont find it.

MediaWiki 1.27.0 + GoogleLogin 1.27 does´nt work

MediaWiki 1.27.0 + GoogleLogin 1.23 does´nt work

What is a possible solution for implemment auth with Google in MediaWiki 1.27?

67.249.141.76 (talkcontribs)

Any update on progress for the account creation via Google Login?

Florianschmidtwelzow (talkcontribs)

> Im try to downgrade GoogleLoggin to 1.23 and does'nt work , the web browser display the follow error in the console (Unexpected token '<') im think that the package contains a syntax error but i dont find it.

Please load the page with ?debug=true appended to the URL, however, this doesn't look like an error from GoogleLogin, GoogleLogin does not load JavaScript on the login page, so there's no reason why it would throw an error like this.

> Hi all, i have configured mediawiki-1.28, php-5.5.9 with nginx-1.4.6 now i am adding google login, i have followed this doc Extension:GoogleLogin/PostAuthManager for google login and after logged in with google account i am getting this error "The supplied credentials are not associated with any user on this wiki"

Yes, this is correct. You need to link a user with the Google account. So, first create a local wiki account and use Special:LinkAccounts to link the account to Google.

> Any update on progress for the account creation via Google Login?

Nope, please see the linked tasks for the account creation progress :)

Cbordolli (talkcontribs)

Good, I'm trying to leave configured Goole Login in mediawiki 1.28. What extensions are required for that? I need to be able to create accounts from google Login. I await your comments. Thank you

87.236.134.114 (talkcontribs)

Hello,

Hoping you can help me out here, Installed MediaWiki 1.29, then installed GoogleLogin-REL1_28-e5b5adc.tar.gz. When logging in via google it complains about "The supplied credentials are not associated with any user on this wiki"

Please advise what I should do, I don't want users in my organisation to have to register and link there Google accounts. I'd like for them to login and an account to be created on first login.

you can contact me on arjun@what3words.com if I have missed anything....

# Custom added configs

$wgGLAllowedDomains = array( 'mywebdomain.com' );

$wgGLSecret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';

$wgGLAppId = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';

$wgWhitelistRead = array( 'Special:GoogleLoginReturn');

$wgAuthManagerAutoConfig['primaryauth'] = [];

$wgGroupPermissions['*']['createaccount'] = true;

$wgGLAllowAccountCreation = true;

$wgGLReplaceMWLogin = true;

$wgGroupPermissions['*']['read'] = false;

$wgGroupPermissions['*']['edit'] = false;

$wgGroupPermissions['user']['edit'] = true;

$wgGroupPermissions['user']['edit'] = true;

$wgGroupPermissions['*']['createaccount'] = false;

Thanks Arjun

14.231.194.225 (talkcontribs)

Hi, did you still need help on this problem ?

I just setup mediawiki with google login and have same problem but i have fixed it.

206.252.195.66 (talkcontribs)

I think this is a common request, so if you have solved the problem, please describe your solution here.

14.142.151.178 (talkcontribs)

Please let me know the solution for this problem "The supplied credentials are not associated with any user on this wiki"

81.61.169.155 (talkcontribs)

I would like a solution for it! I am having the same problem

Reply to "The supplied credentials are not associated with any user on this wiki"