Topic on Extension talk:GoogleLogin

Is there any way to keep original login/signup but use GoogleLogin as additional option?

2
Tiwari.mayank24 (talkcontribs)

Hey,


I was able to complete the setup using


wfLoadExtension( 'GoogleLogin' );
$wgGLSecret = '';
$wgGLAppId = '-.apps.googleusercontent.com';
$wgGLAuthoritativeMode = 'true';
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgInvalidUsernameCharacters = "%";
$wgUserrightsInterwikiDelimiter = "%";
$wgInvalidUsernameCharacters = "%";
$wgAuthManagerConfig = [
    'primaryauth' => [
        GoogleLogin\Auth\GooglePrimaryAuthenticationProvider::class => [
            "class" => GoogleLogin\Auth\GooglePrimaryAuthenticationProvider::class,
            "sort" => 0
        ]
    ],
    'preauth' => [],
    'secondaryauth' => [],
];


But this disabled the traditional login/signup completely, but we are a public wiki and have hundreds of users and profiles, with lots of contributions and not possibly using google based accout. Is there any way to keep old login/signup and use google as additional option to signup/login ?

Florianschmidtwelzow (talkcontribs)

If you remove the config `$wgAuthManagerConfig` from your LocalSettings.php, GoogleLogin should automatically register itself _additionally_ to any other authentication provider (like the "traditional" username/password login). :)

Reply to "Is there any way to keep original login/signup but use GoogleLogin as additional option?"