๐Ÿ‘จโ€๐Ÿ’ป
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. guides

Laravel Passport

If you wish to use this package alongside Laravel Passport, you may encounter the following error message when attempting to authorise with Passports OAuth server:

Driver [authorize] not supported

This is because Socialstream registers routes using the oauth/{provider} structure. This conflicts with Laravel Passports oauth/authorize route. To solve this, you may set a route prefix in your applications socialstream.php config file:

'prefix' => 'auth',

Alternatively, if you wish to keep the prefix Socialstream uses, you may edit Passport's route prefix in its config file. If you haven't already, publish Passport's config file:

php artisan vendor:publish --tag=passport-config

Add the following to config/passport.php:

    /*
    |--------------------------------------------------------------------------
    | Path prefix
    |--------------------------------------------------------------------------
    |
    | Default is 'oauth'.
    |
    */

    'path' => 'passport-oauth',
PreviousFilament with BreezeNextSocialite Providers

Last updated 1 year ago

Was this helpful?

๐Ÿงพ