Topic on Extension talk:GoogleLogin

Invalid Request - Missing required Parameter: client_id

2
157.130.31.226 (talkcontribs)

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?

Florianschmidtwelzow (talkcontribs)

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

Reply to "Invalid Request - Missing required Parameter: client_id"