Steam OpenID Provider for Laravel Socialite
229,737
18
4
Package Data
Maintainer Username: m1guelpf
Maintainer Contact: eklundchristopher@gmail.com (Christopher Eklund)
Package Create Date: 2016-08-04
Package Last Update: 2024-02-14
Home Page: https://socialiteproviders.com/Steam/
Language: PHP
License: MIT
Last Refreshed: 2024-04-15 15:06:45
Package Statistics
Total Downloads: 229,737
Monthly Downloads: 3,751
Daily Downloads: 111
Total Stars: 18
Total Watchers: 4
Total Forks: 15
Total Open Issues: 1

Steam

composer require socialiteproviders/steam

Installation & Basic Usage

Please see the Base Installation Guide, then follow the provider specific instructions below.

Add configuration to config/services.php.

'steam' => [    
  'client_id' => env('STEAM_CLIENT_ID'),  
  'client_secret' => env('STEAM_CLIENT_SECRET'),  
  'redirect' => env('STEAM_REDIRECT_URI') 
],

Add provider event listener

Configure the package's listener to the listen for SocialiteWasCalled events.

Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        'SocialiteProviders\\Steam\\SteamExtendSocialite@handle',
    ],
];

Usage

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

return Socialite::with('steam')->redirect();