Socialite Google redirect_uri_mismatch












2















I am trying to login with google using socialite , my facebook login works fine so the problem in my google app, any help!!!



 'google' => [
'client_id' => 'app-key',
'client_secret' => 'app-secret',
'redirect' => 'http://www.shoptizer.com/callback/google',
],


google login Credentials










share|improve this question























  • all your authorized redirect url's registered with https in google. Do you have any https redirection? Because, in your config there is http based callback url.

    – bl4cksta
    Nov 20 '18 at 18:26
















2















I am trying to login with google using socialite , my facebook login works fine so the problem in my google app, any help!!!



 'google' => [
'client_id' => 'app-key',
'client_secret' => 'app-secret',
'redirect' => 'http://www.shoptizer.com/callback/google',
],


google login Credentials










share|improve this question























  • all your authorized redirect url's registered with https in google. Do you have any https redirection? Because, in your config there is http based callback url.

    – bl4cksta
    Nov 20 '18 at 18:26














2












2








2








I am trying to login with google using socialite , my facebook login works fine so the problem in my google app, any help!!!



 'google' => [
'client_id' => 'app-key',
'client_secret' => 'app-secret',
'redirect' => 'http://www.shoptizer.com/callback/google',
],


google login Credentials










share|improve this question














I am trying to login with google using socialite , my facebook login works fine so the problem in my google app, any help!!!



 'google' => [
'client_id' => 'app-key',
'client_secret' => 'app-secret',
'redirect' => 'http://www.shoptizer.com/callback/google',
],


google login Credentials







laravel google-plus laravel-socialite






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 '18 at 18:10









user10076385user10076385

938




938













  • all your authorized redirect url's registered with https in google. Do you have any https redirection? Because, in your config there is http based callback url.

    – bl4cksta
    Nov 20 '18 at 18:26



















  • all your authorized redirect url's registered with https in google. Do you have any https redirection? Because, in your config there is http based callback url.

    – bl4cksta
    Nov 20 '18 at 18:26

















all your authorized redirect url's registered with https in google. Do you have any https redirection? Because, in your config there is http based callback url.

– bl4cksta
Nov 20 '18 at 18:26





all your authorized redirect url's registered with https in google. Do you have any https redirection? Because, in your config there is http based callback url.

– bl4cksta
Nov 20 '18 at 18:26












2 Answers
2






active

oldest

votes


















1














I found this link https://blog.damirmiladinov.com/laravel/laravel-5.2-socialite-google-login.html



From this tutorial:




Occasionally it happens that google require some time to apply client configuration If you get an error message redirect_uri_missmatch wait couple of minutes and it should work normally.




Also change the redirect uri by:



'google' => [
'client_id' => 'app-key',
'client_secret' => 'app-secret',
'redirect' => 'https://www.shoptizer.com/callback/google',
],


If your app is provided by https you must match your http scheme on google api and on your redirect callback.






share|improve this answer


























  • I am waiting more than 2 hours now

    – user10076385
    Nov 20 '18 at 18:21











  • See my edit i have added a potentially fix

    – loic.lopez
    Nov 20 '18 at 18:25











  • thanks that was the mistake I had to change it to https

    – user10076385
    Nov 20 '18 at 18:28



















-1














Also one more point to remember that Socialite also gives uri_mismatch_error even when your redirects are correctly defined in google console but you dynamically changed the redirectUrl through



return Socialite::with('google')->redirectUrl($redirect_url)->redirect();


So plz take care that you should also need to define while receiving the response



Socialite::driver('google')->redirectUrl($redirect_url)->stateless()->user();


where $redirect_url is your custom redirect url.
After google redirects you to correct place, but even then Socialite checks it at its end.






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399021%2fsocialite-google-redirect-uri-mismatch%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    I found this link https://blog.damirmiladinov.com/laravel/laravel-5.2-socialite-google-login.html



    From this tutorial:




    Occasionally it happens that google require some time to apply client configuration If you get an error message redirect_uri_missmatch wait couple of minutes and it should work normally.




    Also change the redirect uri by:



    'google' => [
    'client_id' => 'app-key',
    'client_secret' => 'app-secret',
    'redirect' => 'https://www.shoptizer.com/callback/google',
    ],


    If your app is provided by https you must match your http scheme on google api and on your redirect callback.






    share|improve this answer


























    • I am waiting more than 2 hours now

      – user10076385
      Nov 20 '18 at 18:21











    • See my edit i have added a potentially fix

      – loic.lopez
      Nov 20 '18 at 18:25











    • thanks that was the mistake I had to change it to https

      – user10076385
      Nov 20 '18 at 18:28
















    1














    I found this link https://blog.damirmiladinov.com/laravel/laravel-5.2-socialite-google-login.html



    From this tutorial:




    Occasionally it happens that google require some time to apply client configuration If you get an error message redirect_uri_missmatch wait couple of minutes and it should work normally.




    Also change the redirect uri by:



    'google' => [
    'client_id' => 'app-key',
    'client_secret' => 'app-secret',
    'redirect' => 'https://www.shoptizer.com/callback/google',
    ],


    If your app is provided by https you must match your http scheme on google api and on your redirect callback.






    share|improve this answer


























    • I am waiting more than 2 hours now

      – user10076385
      Nov 20 '18 at 18:21











    • See my edit i have added a potentially fix

      – loic.lopez
      Nov 20 '18 at 18:25











    • thanks that was the mistake I had to change it to https

      – user10076385
      Nov 20 '18 at 18:28














    1












    1








    1







    I found this link https://blog.damirmiladinov.com/laravel/laravel-5.2-socialite-google-login.html



    From this tutorial:




    Occasionally it happens that google require some time to apply client configuration If you get an error message redirect_uri_missmatch wait couple of minutes and it should work normally.




    Also change the redirect uri by:



    'google' => [
    'client_id' => 'app-key',
    'client_secret' => 'app-secret',
    'redirect' => 'https://www.shoptizer.com/callback/google',
    ],


    If your app is provided by https you must match your http scheme on google api and on your redirect callback.






    share|improve this answer















    I found this link https://blog.damirmiladinov.com/laravel/laravel-5.2-socialite-google-login.html



    From this tutorial:




    Occasionally it happens that google require some time to apply client configuration If you get an error message redirect_uri_missmatch wait couple of minutes and it should work normally.




    Also change the redirect uri by:



    'google' => [
    'client_id' => 'app-key',
    'client_secret' => 'app-secret',
    'redirect' => 'https://www.shoptizer.com/callback/google',
    ],


    If your app is provided by https you must match your http scheme on google api and on your redirect callback.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 20 '18 at 18:24

























    answered Nov 20 '18 at 18:19









    loic.lopezloic.lopez

    1941213




    1941213













    • I am waiting more than 2 hours now

      – user10076385
      Nov 20 '18 at 18:21











    • See my edit i have added a potentially fix

      – loic.lopez
      Nov 20 '18 at 18:25











    • thanks that was the mistake I had to change it to https

      – user10076385
      Nov 20 '18 at 18:28



















    • I am waiting more than 2 hours now

      – user10076385
      Nov 20 '18 at 18:21











    • See my edit i have added a potentially fix

      – loic.lopez
      Nov 20 '18 at 18:25











    • thanks that was the mistake I had to change it to https

      – user10076385
      Nov 20 '18 at 18:28

















    I am waiting more than 2 hours now

    – user10076385
    Nov 20 '18 at 18:21





    I am waiting more than 2 hours now

    – user10076385
    Nov 20 '18 at 18:21













    See my edit i have added a potentially fix

    – loic.lopez
    Nov 20 '18 at 18:25





    See my edit i have added a potentially fix

    – loic.lopez
    Nov 20 '18 at 18:25













    thanks that was the mistake I had to change it to https

    – user10076385
    Nov 20 '18 at 18:28





    thanks that was the mistake I had to change it to https

    – user10076385
    Nov 20 '18 at 18:28













    -1














    Also one more point to remember that Socialite also gives uri_mismatch_error even when your redirects are correctly defined in google console but you dynamically changed the redirectUrl through



    return Socialite::with('google')->redirectUrl($redirect_url)->redirect();


    So plz take care that you should also need to define while receiving the response



    Socialite::driver('google')->redirectUrl($redirect_url)->stateless()->user();


    where $redirect_url is your custom redirect url.
    After google redirects you to correct place, but even then Socialite checks it at its end.






    share|improve this answer






























      -1














      Also one more point to remember that Socialite also gives uri_mismatch_error even when your redirects are correctly defined in google console but you dynamically changed the redirectUrl through



      return Socialite::with('google')->redirectUrl($redirect_url)->redirect();


      So plz take care that you should also need to define while receiving the response



      Socialite::driver('google')->redirectUrl($redirect_url)->stateless()->user();


      where $redirect_url is your custom redirect url.
      After google redirects you to correct place, but even then Socialite checks it at its end.






      share|improve this answer




























        -1












        -1








        -1







        Also one more point to remember that Socialite also gives uri_mismatch_error even when your redirects are correctly defined in google console but you dynamically changed the redirectUrl through



        return Socialite::with('google')->redirectUrl($redirect_url)->redirect();


        So plz take care that you should also need to define while receiving the response



        Socialite::driver('google')->redirectUrl($redirect_url)->stateless()->user();


        where $redirect_url is your custom redirect url.
        After google redirects you to correct place, but even then Socialite checks it at its end.






        share|improve this answer















        Also one more point to remember that Socialite also gives uri_mismatch_error even when your redirects are correctly defined in google console but you dynamically changed the redirectUrl through



        return Socialite::with('google')->redirectUrl($redirect_url)->redirect();


        So plz take care that you should also need to define while receiving the response



        Socialite::driver('google')->redirectUrl($redirect_url)->stateless()->user();


        where $redirect_url is your custom redirect url.
        After google redirects you to correct place, but even then Socialite checks it at its end.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 28 '18 at 0:54









        halfelf

        6,651103247




        6,651103247










        answered Dec 28 '18 at 0:10









        AmarAmar

        11




        11






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399021%2fsocialite-google-redirect-uri-mismatch%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?