• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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
6.9k
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 15 Jul 2019, 11:12

    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 15 Jul 2019, 11:37

      Hi,

      What is happening ?

      1 Reply Last reply Reply Quote 0
      • K
        Keerthi last edited by 15 Jul 2019, 11:46

        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 15 Jul 2019, 13:10

          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 16 Jul 2019, 06:56

            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 16 Jul 2019, 08:03

              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 16 Jul 2019, 10:20

                Hi,

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

                1 Reply Last reply Reply Quote 0
                • 7 months later
                • D
                  Damayanti Nama @rahul last edited by 18 Feb 2020, 08:43

                  @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 18 Feb 2020, 09:14

                    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 18 Feb 2020, 09:36 Reply Quote 0
                    • D
                      Damayanti Nama @rahul last edited by 18 Feb 2020, 09:36

                      @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
                      • 7 days later
                      • P
                        prateek-webkul last edited by 25 Feb 2020, 12:11

                        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
                        • 4 years later
                        • T
                          tayyab last edited by 23 May 2024, 06:44

                          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 24 May 2024, 04:19 23 May 2024, 08:13

                            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
                            18 out of 21
                            • First post
                              18/21
                              Last post