Extension talk:GoogleLogin/2015
Add topicThis page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
How does this work with the Facebook extension?
[edit]Hi, I am already using the Facebook authentication extension called Facebook. Interested in supporting both Facebook and Google login. Has anyone ever tried to do this and knows if it works well or has glitches? Nischayn22 (talk) 12:22, 9 January 2015 (UTC)
- Haven't tried it, but they should work (they based on the same idea), so (in case, that no other has any experience about this combination) you need to test it :) Florianschmidtwelzow (talk) 23:15, 8 February 2015 (UTC)
- Okay, I will try whenever I have time. Thanks :) Nischayn22 (talk) 13:00, 10 February 2015 (UTC)
Is it still working?
[edit]Just tried it on this site and it wasn't working. http://impact.dlsi.ua.es/wiki/index.php?title=Special:UserLogin Nischayn22 (talk) 12:25, 9 January 2015 (UTC)
- Okay, its working here http://wiki.datadryad.org/Main_Page Nischayn22 (talk) 12:29, 9 January 2015 (UTC)
- Hi :)
- please always provide any error message or something else to help me to help you :P Look at the response from google: "redirect_uri_mismatch" -> The redirect URI in the request: http://impact.dlsi.ua.es/wiki/index.php/Special:GoogleLogin did not match a registered redirect URI.
- So please check in your Google Api console settings, if you set
http://impact.dlsi.ua.es/wiki/index.php/Special:GoogleLogin
as a valid redirect URI (you haven't atm ;)). After this, it should work :) Florianschmidtwelzow (talk) 21:47, 9 January 2015 (UTC)
[RESOLVED] Creating New Accounts
[edit]RESOLVED | |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi I am having issues with creating new accounts. I have $wgGroupPermissions['*']['createaccount'] = false; and $wgGLAllowAccountCreation = true; in my config but when I click on Special:CreateAccount the url becomes Special:GoogleLogin/signup and says The requested page doesn't exist. Any help appreciated! Oliver.whiteman (talk) 21:02, 12 January 2015 (UTC)
- Hi,
- thanks for reporting this. This actually seems to be a bug of the extension (i assume you set $wgGLReplaceMWLogin to true, too?). Do you want to open a bug for it in phabricator? If not, i will do it tomorrow.
- As a workaround for now i suggest to not use Special:CreateAccount and use Special:GoogleLogin or Special:UserLogin, both will login you or redirect you to the page to create a new account. Florianschmidtwelzow (talk) 22:01, 12 January 2015 (UTC)
- Yes $wgGLReplaceMWLogin is set to true.
- Bug raised: T86599
- Thanks Oliver.whiteman (talk) 22:42, 12 January 2015 (UTC)
[RESOLVED] Short sessions
[edit]RESOLVED | |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I know there is already a thread on this but is wgGLKeepLoginDefault still working for keeping sessions alive?
Mine are extremely short lived at the moment and causing some frustration for users when editing pages
Thanks! Oliver.whiteman (talk) 15:09, 27 January 2015 (UTC)
- This config actually doesn't exist. It was a proposed approach to solve the short session problem, but because of missing response, it seems, that i haven't worked on it. I've created a task for it: T87675. Florianschmidtwelzow (talk) 20:35, 27 January 2015 (UTC)
- Aha, great. I look forward to it! Oliver.whiteman (talk) 16:40, 29 January 2015 (UTC)
Unable to get domain restriction working on Google Login
[edit]- Hi! I've trying to get $wgGLAllowedDomains working... Don't know why but everything works perfect, but the restrcition is not.
- I Have this settings on LocalSettings:
- Private Wiki
- $wgGroupPermissions['*']['read'] = false;
- $wgWhitelistRead = array( 'Special:GoogleLogin' );
- No account creation
- $wgGroupPermissions['*']['createaccount'] = false;
- $wgGLAllowAccountCreation = true;
- In GoogleLogin.php
- $wgGLAllowedDomains = array( 'mydomain.org' );
- $wgGLAllowAccountCreation = $wgGroupPermissions['*']['createaccount'];
- I have follow the instructions in perfect orden and detail if I don't activate $wgGLAllowedDomains everything works like a charm. What should I do? 190.71.229.25 07:49, 5 February 2015 (UTC)
- Ah!, here is the error:
- [9eab7c16] /mediawiki/index.php?title=Special:GoogleLogin&code=4/LWnhisYerJ6UQfcToXcLvqvbNTP2JAbNYjSm-OKKZS0.0r7BPmQJB3IdJvIeHux6iLahH3OxlgI Exception from line 387 of /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/extensions/GoogleLogin/includes/GoogleLogin.body.php: Domainlist can not be downloaded!
- Backtrace:
- 0 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/extensions/GoogleLogin/includes/GoogleLogin.body.php(333): GoogleLogin->createTLDCache(string)
- 1 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/extensions/GoogleLogin/includes/GoogleLogin.body.php(201): GoogleLogin->getHost(string)
- 2 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/extensions/GoogleLogin/includes/specials/SpecialGoogleLogin.php(127): GoogleLogin->isValidDomain(string)
- 3 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/extensions/GoogleLogin/includes/specials/SpecialGoogleLogin.php(44): SpecialGoogleLogin->createOrMerge(Google_Service_Plus_Person, GoogleLoginDB, boolean)
- 4 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/includes/specialpage/SpecialPage.php(379): SpecialGoogleLogin->execute(NULL)
- 5 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/includes/specialpage/SpecialPageFactory.php(503): SpecialPage->run(NULL)
- 6 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/includes/Wiki.php(285): SpecialPageFactory::executePath(Title, RequestContext)
- 7 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/includes/Wiki.php(588): MediaWiki->performRequest()
- 8 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/includes/Wiki.php(447): MediaWiki->main()
- 9 /hermes/bosoraweb052/b2876/sl.creatividadydesarrol/mediawiki/index.php(46): MediaWiki->run()
- 10 {main} 190.71.229.25 07:55, 5 February 2015 (UTC)
- You need to enable the http wrapper in php. I think you're on a shared host? If so, please check, if you can enable it or ask your hoster, otherwise you have to download the list by yourself and save it in the directory
extensions/GoogleLogin/cache/tld.txt
. After it, the restriction should work :) Florianschmidtwelzow (talk) 09:45, 5 February 2015 (UTC)- Thanks a lot!, it did work but.. when I login it shows me the content of the file (tld.txt) in the backgroun, the only way to remove it is to follow other link inside the wiki... Don't know what to do... Thanks in advance! 181.143.35.98 17:06, 5 February 2015 (UTC)
- Can you take a screenshot of the page? Do you really mean, that the content of tld.txt is visible "behind the wiki content"? How do you transferred the file to your webserver? How do you saved the contents of tld.txt? Florianschmidtwelzow (talk) 20:50, 6 February 2015 (UTC)
- Thanks a lot!, it did work but.. when I login it shows me the content of the file (tld.txt) in the backgroun, the only way to remove it is to follow other link inside the wiki... Don't know what to do... Thanks in advance! 181.143.35.98 17:06, 5 February 2015 (UTC)
- Hello, I happen to have the same problem. This is what happens. I downloaded the file and renamed it to tld.txt. At the bottom of that wall of domains is the 'Login with Google' section. Do you have any clue how to fix this? Thanks!
- Edit: Okay, I fixed it by uploading a blank file. I figured I don't need those domains anyway. :) Bubbly (talk) 05:37, 26 June 2016 (UTC)
Merge with existing user
[edit]Hi!
Is it possible to merge with existing user on login?
I have used the older GoogleAppsAuthentification extension but it doesn’t work any more due to OpenID 2.0. This extension created users from the email addresses automatically and I would like to merge with the existing users now when migrating to GoogleLogin.
I am using MediaWiki 1.23.9 and the GoogleLogin version is 0.1.3 Jenkins101 (talk) 20:48, 18 May 2015 (UTC)
- Hi,
- i think the easiest way would be to ask your users to login into their user accounts, visit Special:GoogleLogin and connect their existing user with the Google user. Florianschmidtwelzow (talk) 16:58, 10 July 2015 (UTC)
Invalid Request - Missing required Parameter: client_id
[edit]Hi - I just installed this extension, ran update on my db, and added the configuration as follows:
<?php
$wgGLSecret = 'MYSECRET';
$wgGLAppId = 'MY CLIENT ID';
$wgGLAllowedDomains = array('mydomain.com');
$wgGLReplaceMWLogin = true;
$wgGLForceKeepLogin = true;
$wgWhitelistRead = array( 'Special:GoogleLogin' );
require_once("$IP/extensions/GoogleLogin/GoogleLogin.php");
And when I click the "Log in with Google" button on the new log in form, I see this from google:
400. That’s an error. Error: invalid_request Missing required parameter: client_id Learn more Request Details scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email response_type=code access_type=online redirect_uri=http://mydomain.com/index.php?title=Special:GoogleLogin approval_prompt=auto client_id= That’s all we know.
Any ideas? 157.130.31.226 20:31, 28 May 2015 (UTC)
- Hi,
- please move the configuration under the require_once line, otherwise your configuration in LocalSettings.php will be overwritten by the default configuration :)
- Best,
- Florian Florianschmidtwelzow (talk) 17:00, 10 July 2015 (UTC)
German Mediawiki 1.25
[edit]How can one see, whether the login was using Google login or the Standard login?
Regards Bernd @Bmrberlin [[User:Bmrberlin| Bernd M.]] (talk) 13:30, 22 August 2015 (UTC)
- It's not possible to see, if a user logged in with Google or not. Once the user is authenticated, it doesn't matter how he achieved it :) If you want to see, if a user account was created with GoogleLogin, you can add the configuration variable
$wgGLShowCreateReason
to true. Florianschmidtwelzow (talk) 05:19, 3 September 2015 (UTC)
Fatal Error
[edit]Hey there,
I've just completed the setup of the extension on my private wiki: the end of the LocalSettings.php file sounds like this:
require_once "$IP/extensions/GoogleLogin/GoogleLogin.php";
$wgGLSecret = '*****';
$wgGLAppId = '*****';
$wgWhitelistRead = array( 'Speciale:GoogleLogin' );
$wgGLReplaceMWLogin = true;
I've also ran the update process but everytime I try to log in via Google, shows up a page that says "Fatal exception of type MWException" with the date.
Ideas? :( UCalza (talk) 23:47, 19 November 2015 (UTC)
- Bump ^ I have the same issue. 70.183.27.186 (talk) 19:12, 23 November 2015 (UTC)
- Hi, please enable the full exception details, otherwise I can't help you (set
$wgShowExceptionDetails
to true and open the page where you get this error). See Manual:How_to_debug. Florianschmidtwelzow (talk) 14:27, 10 January 2016 (UTC)
Each new login want's to create account again.
[edit]Hey,
what i am missing here. After user created account and logged out. Next time when he want's to login and gets this error message:"The wiki account, connected with your Google account, doesn't exist (anymore). The connection between your accounts will be removed. Please create a new wiki account or use another existing one."
Creating new account with already registered username gives this error:"Fatal error: Call to a member function sendConfirmationMail() on a non-object in /var/www/html/mediawiki-1.26.0/extensions/GoogleLogin/includes/specials/SpecialGoogleLogin.php on line 452" 86.110.32.89 (talk) 18:04, 4 December 2015 (UTC)
- Which version of GoogleLogin do you use? If a user currently exists and is connected with a google id, GoogleLogin shouldn't remove the connection during the login process. Florianschmidtwelzow (talk) 14:26, 10 January 2016 (UTC)
- Facing the same issue. Any solution?
- What parameters to set in LocalSettings.php to make
- is work properlyt 106.51.36.237 (talk) 06:26, 31 March 2016 (UTC)
- I can't really reproduce the problem, could anyone of you please give a more detailed (maybe step-by-step) error report about what I need to do to reproduce the problem? And again: What version of GoogleLogin do you use?
- Thanks in advance! Florianschmidtwelzow (talk) 09:21, 31 March 2016 (UTC)