socialite-development

Configure Laravel Socialite providers, redirects, and callbacks for OAuth authentication.

1.5k|170|Updated Sep 25, 2024
One-click install
npx skills add https://github.com/relaticle/relaticle --skill socialite-development-relaticle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: socialite-development
Source: https://github.com/relaticle/relaticle/tree/main/.claude/skills/socialite-development
Command: npx skills add https://github.com/relaticle/relaticle --skill socialite-development-relaticle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Socialite authentication streamlines third-party login flows, reducing boilerplate and enabling seamless OAuth integrations across providers in Laravel applications.

Core Features & Use Cases

  • Built-in and community providers are supported, enabling quick integration of Facebook, Google, GitHub, LinkedIn, and more.
  • Configure provider credentials in config/services.php, register redirect and callback routes, and retrieve user details consistently across apps.
  • Use cases include user onboarding with social login, account linking, and testing with Socialite fakes to simulate provider responses.

Quick Start

Configure providers in config/services.php, register routes for redirect and callback, and verify login flow end-to-end in your Laravel app.

Frequently Asked Questions about socialite-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure OAuth credentials for social login in Laravel?

To configure OAuth credentials for social login in Laravel, define provider credentials in config/services.php. This setup enables Socialite to manage third-party authentication flows by connecting your application to the desired OAuth providers.

What's the best way to test social authentication callbacks during development?

The best way to test social authentication callbacks is by using Socialite fakes to simulate provider responses. This allows you to verify redirect and callback handling end-to-end without relying on live third-party OAuth connections.

Does Laravel Socialite support community providers beyond built-in options?

Yes, Laravel Socialite supports both built-in and community providers. This enables quick integration of platforms like Facebook, Google, and GitHub, while allowing you to extend social login to additional third-party services.

How do I retrieve user details after a successful OAuth redirect callback?

To retrieve user details after an OAuth redirect callback, handle the callback route in your Laravel controller and use Socialite to fetch the authenticated user's information consistently across different configured providers.

When do I need to register separate redirect and callback routes for social login?

You need to register separate redirect and callback routes for social login when integrating any OAuth provider. This route registration handles the user flow from your app to the provider and back to complete authentication.