Upgraded MediaWiki from 1.27.3 to 1.32.0
Upgraded GoogleLogin from 0.3.1 to 0.4.0
I've ran the update script and composer. I have removed no longer present options from LocalSettings.php. I am left with:
wfLoadExtension( 'GoogleLogin' );
$wgGLSecret = 'aaaaaaaaaaaa';
$wgGLAppId = 'bbbbbbbbbbb';
$wgWhitelistRead = array( 'Special:GoogleLoginReturn' );
$wgGLAllowedDomains = array('domain.com');
$wgAuthManagerAutoConfig['primaryauth'] = [];
I did have an issue where my 'Specials' folder in the includes was 'specials' instead but I have sorted that (HFS fun) resolving a class not found error.
Now I can click the log in link, get the Google login flow, but then when done I get stuck in a loop, Chrome reports ' ERR_TOO_MANY_REDIRECTS'. If I use new credentials that do not have the G+ scopes.
If I use the old credentials that do have the G+ scope then I get redirected back to the 'Choose an account' screen at https://accounts.google.com/signin/oauth/oauthchooseaccount?client_id=abcd
I have cleared all local storage for this site and also tried in incognito mode to be sure, the same happens.
Apache logs show repeated GET /Special:GoogleLoginReturn?<removed all the query params> referred from https://accounts.google.co.uk/accounts/SetSID
Looking at the code so far, I have got as as seeing that $authData is empty.
Have I missed something in upgrading MediaWiki or..? Thanks!