Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Sign in with google+ and facebook login in sign page of bagisto ecommerce

    Knowledge Base
    6
    21
    6885
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Keerthi last edited by

      Hi,

      Can you give any example to redirect to any other page after login with google+

      public function handleProviderCallback()
      {
      $user = Socialite::driver('google')->user();

          **return $user->name;**
      }
      
      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hi,

        What is happening ?

        1 Reply Last reply Reply Quote 0
        • K
          Keerthi last edited by

          Hi,

          It is showing only user name but I need redirect to another page, can you give me redirect route after login with google+ successfully.

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by

            Hi,

            Place your redirect route in 'handleProviderCallback' method & you will be redirected accordingly.

            For more reference, please see this one - https://medium.com/employbl/add-login-with-google-to-your-laravel-app-d2205f01b895

            Thanks

            1 Reply Last reply Reply Quote 0
            • K
              Keerthi last edited by

              Hi,

              Now sign in with google+ and facebook is working fine for me, but after successfully sign in with google+ also sign in button is showing below account drop down instead of logout button. Please refer below is the screen shot for this problem. can anyone give me the solution to sort out the issue, thank you. Screenshot (62).png

              1 Reply Last reply Reply Quote 0
              • R
                rahul last edited by

                Hi,

                In 'handleProviderCallback' method, when you got data from source(ex-google
                ) then you need to implement login functionality according to that data & you are missing this.
                So, Kindly take pull from this repository - https://github.com/rahulshukla-webkul/bagisto-socialite.
                We have implemented this one here.

                Thanks

                1 Reply Last reply Reply Quote 0
                • K
                  Keerthi last edited by

                  Hi,

                  Thank you so much............! Now everything working fine regarding sign in with google+

                  1 Reply Last reply Reply Quote 0
                  • D
                    Damayanti Nama @rahul last edited by

                    @rahul after add "laravel/socialite": "^3.2.0" and run "composer update" command then showing error Class 'Laravel\Socialite\SocialiteServiceProvider' not found

                    1 Reply Last reply Reply Quote 0
                    • R
                      rahul last edited by

                      Hi @Damayanti-Nama

                      You need to run add this service provider in your applications app.php file of config folder.

                      Please go through with this article - https://medium.com/justlaravel/laravel-social-login-using-socialite-45305c7ddc00

                      Thanks

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Damayanti Nama @rahul last edited by

                        @rahul Thanks
                        It's working for me.
                        one more query is How to create a Carousel in a custom theme?

                        1 Reply Last reply Reply Quote 0
                        • P
                          prateek-webkul last edited by

                          Hello Damayanti Nama,

                          You may refer to below link for adding carousel component
                          https://forums.bagisto.com/topic/1186/add-carousel-component-vuejs-into-bagisto/2

                          1 Reply Last reply Reply Quote 0
                          • T
                            tayyab last edited by

                            when I am login through google it was redirecting me back to login page

                            Here's my google callback url

                            GOOGLE_CALLBACK_URL=http://127.0.0.1:8000/customer/social-login/google/callback

                            1 Reply Last reply Reply Quote 0
                            • Rishabh-Webkul
                              Rishabh-Webkul last edited by Rishabh-Webkul

                              Hello @tayyab

                              Greetings of the day..!!

                              For this, you have to create your credentials first and then make changes in the .env file which is present in the root directory of Bagisto.

                              Kindly go to this URL -> https://console.cloud.google.com/apis/credentials/oauthclient

                              Add your callback URL in Authorised Redirect URL section as shown in the below image.

                              callback.png

                              After that just go to the login page and click on the Google icon.

                              Thanks & Regards..!!

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post