socialite-development

Automate OAuth social authentication flows with Laravel Socialite.

113|135|Updated Aug 28, 2019
One-click install
npx skills add https://github.com/hexlet-volunteers/hexlet-sicp --skill socialite-development-hexlet-volunteers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: socialite-development
Source: https://github.com/hexlet-volunteers/hexlet-sicp/tree/main/.agents/skills/socialite-development
Command: npx skills add https://github.com/hexlet-volunteers/hexlet-sicp --skill socialite-development-hexlet-volunteers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Authenticate users via social providers in Laravel apps by leveraging Laravel Socialite, simplifying provider integration, redirects, and user retrieval.

Core Features & Use Cases

  • Configure multiple social providers (built-in and community) with client_id, client_secret, and redirect URLs.
  • Implement redirect and callback routes to complete OAuth flows and retrieve user details.
  • Customize authentication scopes and parameters, and test flows with Socialite fakes for reliable local development.

Quick Start

Configure a provider in config/services.php with the correct driver name, create redirect/callback routes, and verify the flow using Socialite::fake() in tests.

Frequently Asked Questions about socialite-development

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

FAQPage Schema
How do I set up OAuth social login in Laravel?

OAuth social login in Laravel is configured by adding client_id, client_secret, and redirect URLs to config/services.php, then registering redirect and callback routes to retrieve user details.

How does Laravel Socialite handle the OAuth redirect and callback flow?

Laravel Socialite handles the OAuth flow by redirecting users to the provider for authorization and processing the callback route to retrieve validated user details upon their return.

Can I use Laravel Socialite with community providers beyond the built-in ones?

Yes, Laravel Socialite supports both built-in and community providers, allowing you to configure multiple social authentication drivers using the same redirect and callback patterns.

How do I test OAuth social login flows during local development?

You can test OAuth social login flows locally by using Socialite fakes to mock provider redirects, callbacks, and user retrieval without needing actual provider credentials or live network requests.

Does Laravel Socialite support stateless authentication contexts?

Yes, Laravel Socialite supports stateless contexts, enabling OAuth social login flows in APIs or environments without session storage while still validating user authorizations gracefully.

How do I handle denied OAuth authorizations in a Laravel social login flow?

Denied OAuth authorizations in Laravel social login are handled gracefully by catching the denial during the callback phase, allowing your application to redirect users without crashing the flow.