PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Solved

Question about Social OAuth

Solved
carlos4

Dec 5th, 2024 04:21 AM

I would like to know if the OAuth in the auth/setup is just an indicator that I installed the credentials of the socials and to just display the buttons for individual socials?

I'm quite confused because when setting up OAuth like google for example. It requires a callback. I'm not sure where to point the callback when setting up the callback from the google.

bobbyiliev

Dec 5th, 2024 08:30 AM

Best Answer

Hey!

All of the Socail OAuth functinality is part of the Laravel Socialite package:

https://socialiteproviders.com/

This is where all of the functionality comes from including the callback handle logic.

The callback route specifically is available at auth/{driver}/callback:

php artisan route:list | grep call
  GET|HEAD   auth/{driver}/callback .............................................................. Devdojo\Auth › SocialController@callback

For more information you can check out the documentation of the auth package itself here:

Auth package: Social Authentication Integration

Let me know if you have any questions!

- Bobby