Contents of Steam


1. Composer

// This assumes that you have composer installed globally
composer require socialiteproviders/steam

2. Service Provider

For example:

'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    \SocialiteProviders\Manager\ServiceProvider::class, // add

3. Add the Event and Listeners

For example:

 * The event handler mappings for the application.
 * @var array
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // add your listeners (aka providers) here


4. Environment Variables

If you add environment values to your .env as exactly shown below, you do not need to add an entry to the services array.

Append provider values to your .env file

// other values above

Add to config/services.php.

You do not need to add this if you add the values to the .env exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method

'steam' => [
    // the client_id key is required, even though it isn't utilised by the Steam provider
    'client_id' => null,
    'client_secret' => env('STEAM_KEY'),
    'redirect' => env('STEAM_REDIRECT_URI'),  



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

Lumen Support

You can use Socialite providers with Lumen. Just make sure that you have facade support turned on and that you follow the setup directions properly.

Also, configs cannot be parsed from the services[] in Lumen. You can only set the values in the .env file as shown exactly in this document. If needed, you can also override a config (shown below).

Overriding a config

If you need to override the provider’s environment or config variables dynamically anywhere in your application, you may use the following:

$clientKey = "apikey";
$redirectUrl = "";
$additionalProviderConfig = ['site' => ''];
$config = new \SocialiteProviders\Manager\Config(null, $clientKey, $redirectUrl, $additionalProviderConfig);
return Socialite::with('steam')->setConfig($config)->redirect();