Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 29, 2024 via composer

laravel/socialite v5.8.0

Laravel wrapper around OAuth 1 & OAuth 2 libraries.
Package summary
Share
0
issues
1
license
45
MIT
Package created
22 Aug 2014
Version published
14 Jul 2023
Maintainers
1
Total deps
45
Direct deps
5
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
45 Packages, Including:
carbonphp/carbon-doctrine-types@3.2.0
doctrine/inflector@2.0.10
fruitcake/php-cors@v1.3.0
guzzlehttp/guzzle@7.8.1
guzzlehttp/promises@2.0.2
guzzlehttp/psr7@2.6.2
guzzlehttp/uri-template@v1.0.3
illuminate/collections@v10.48.12
illuminate/conditionable@v10.48.12
illuminate/contracts@v10.48.12
illuminate/filesystem@v10.48.12
illuminate/http@v10.48.12
illuminate/macroable@v10.48.12
illuminate/session@v10.48.12
illuminate/support@v10.48.12
laravel/socialite@v5.8.0
league/oauth1-client@v1.10.1
nesbot/carbon@2.72.3
psr/clock@1.0.0
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/http-client@1.0.3
psr/http-factory@1.1.0
psr/log@3.0.0
psr/simple-cache@3.0.0
ralouphie/getallheaders@3.0.3
symfony/deprecation-contracts@v3.5.0
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/finder@v6.4.7
symfony/http-foundation@v6.4.7
symfony/http-kernel@v6.4.7
symfony/mime@v6.4.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-idn@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php72@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/translation@v6.4.7
symfony/translation-contracts@v3.5.0
symfony/var-dumper@v7.0.7
voku/portable-ascii@2.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of laravel/socialite 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
guzzlehttp/guzzle7.8.1112.34 kBMIT
prod
illuminate/contractsv10.48.12-MIT
prod
illuminate/httpv10.48.12-MIT
prod
illuminate/supportv10.48.12-MIT
prod
league/oauth1-clientv1.10.173.13 kBMIT
prod

Visualizations

Frequently Asked Questions

What does laravel/socialite do?

Laravel Socialite is a package that provides a fluent and expressive interface for OAuth authentication with various popular platforms like Facebook, Twitter, Google, LinkedIn, GitHub, GitLab, and Bitbucket. A key feature of Laravel Socialite is that it manages much of the boilerplate social authentication code, thereby reducing redundancy and speeding up the development process.

How do you use laravel/socialite?

Laravel Socialite is quite straightforward to use. First, you need to install it via composer by running the command composer require laravel/socialite.

To authenticate with a particular service, such as Facebook, you would configure your services in your config/services.php file:

'facebook' => [
    'client_id' => env('FACEBOOK_CLIENT_ID'),  
    'client_secret' => env('FACEBOOK_CLIENT_SECRET'), 
    'redirect' => env('FACEBOOK_REDIRECT_URL'),  
],

Next, within your controller, you can redirect the user to the OAuth provider:

use Laravel\Socialite\Facades\Socialite;

public function redirectToProvider()
{
    return Socialite::driver('facebook')->redirect();
}

The user will then be redirected back to your application, where you may retrieve their information:

public function handleProviderCallback()
{
    $user = Socialite::driver('facebook')->user();

    // $user->token;
}

Remember that this is merely an example, the actual implementation may vary based on your application's specific requirements.

Where are the laravel/socialite docs?

The official documentation for Laravel Socialite can be found on the Laravel website at https://laravel.com/docs/socialite. This serves as a comprehensive guide, providing detailed insights into the package, its use cases, and various features. It also outlines the methods to implement social authentication via different OAuth providers.