๐Ÿ‘จโ€๐Ÿ’ป
Socialstream
  • Introduction
  • โฎ๏ธPrologue
    • Release Notes
    • Upgrade Guide
      • Upgrading to v6 from 5.x
      • Upgrading to v5 from 4.x
      • Upgrading to v4 from 3.x
      • Upgrading to v3 from 2.x
      • Upgrading to v2 from 1.x
    • Contribution Guide
  • ๐Ÿ”‘Getting Started
    • Installation
    • Configuration
    • Customization
      • Socialite Redirect
      • Resolving Users
      • Handling Invalid State
      • Handling OAuth Errors
      • Authenticating Users
  • ๐Ÿš€Features
    • Remember Session
    • Refresh Expired Tokens
    • Provider Avatars
    • Global Login
    • Register from Login
    • Missing Emails
    • Auth Existing Unlinked Users
    • Login on Registration (deprecated)
  • ๐Ÿงพguides
    • Standalone Installation
    • Filament with Jetstream
    • Filament with Breeze
    • Laravel Passport
    • Socialite Providers
    • Overriding Fortify's Authentication
  • ๐Ÿ”—Links
    • View Code On GitHub
    • About Me
    • Contribute
    • Donate
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Customization

Authenticating Users

The main benefit of using Socialstream versus writing an OAuth integration for your Laravel application yourself, is that it handles all of the authentication logic for you. If you wish, you may override this logic, by registering your own "authenticator" with Socialstream. To do so, simply create a class that implements Socialstream's AuthenticatesOauthCallback contract, and register it with Socialstream via the boot method of a service provider:

public function boot(): void
{
    Socialstream::authenticatesOauthCallbackUsing(CustomAuthenticateOauthCallback::class);
}
PreviousHandling OAuth ErrorsNextRemember Session

Last updated 1 year ago

Was this helpful?

๐Ÿ”‘