mercredi 7 décembre 2016

Google authentication in laravel application - hybrid auth error

I am trying to add google authentication in my laravel application using hybrid auth.

Google auth configuration:

<?php

return array(

    "base_url" => "http://ift.tt/2gEmwfa",
    "providers" => array(

        "Google" => array(

            "enabled" => true,
            "keys" => array(
                "id" => "myid.apps.googleusercontent.com",
                "secret" => "mysecret"
            ),
            "scope" => "http://ift.tt/AjNHPk "

        )

    )

);

The authentication worked fine in the http website. But when I added SSL/https to the site it is not working and I am getting the following error:

Exception in Auth.php line 169:
User profile request failed! Google returned an error: exception 'Exception' with message 'The Authorization Service has return: invalid_request' in /project/httpdocs/vendor/hybridauth/hybridauth/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php:84

What is the issue causing this error?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire