I'm currently using humhub, I've been integrating Facebook and Google logins. The problem I have is despite Facebook and Google both registering that logins have been successful it doesn't redirect me it simply stays on the login screen. Does anyone know how to resolve this?

https://gotsocial.co.uk/user/auth/login

The documentation says to edit my common.php so I changed to the following
http://docs.humhub.org/admin-authentication.html

The url redirect I used for Google was:

https://gotsocial.co.uk/user/auth/external?authclient=google
return [
    // ...
    'components' => [
        // ...
        'authClientCollection' => [
            'clients' => [
                // ...
                'google' => [
                    'class' => 'humhub\modules\user\authclient\Google',
                    'clientId' => '**',
                    'clientSecret' => '**',
                ],
            ],
        ],
        // ...
    ],
    // ...
	 'components' => [
        // ...
        'authClientCollection' => [
            'clients' => [
                // ...
                'facebook' => [
                    'class' => 'humhub\modules\user\authclient\Facebook',
                    'clientId' => '**',
                    'clientSecret' => '**',
                ],
            ],
        ],
        // ...
    ],
	'components' => [
        'urlManager' => [
            'showScriptName' => false,
            'enablePrettyUrl' => true,
        ],
    ]
];

    6 months later

    Make sure that the URL trying to access is included in the app's Whitelist. If this is in development (and you're looking at the site via IP address), you might have to go use a web proxying service (e.g. ngrok.io) and add the URL generated by ngrok in your app's whitelist.

    FB doesn't allow listing IP addresses in oauth redirects

      Write a Reply...