Steam OpenID Provider for Laravel Socialite

v1.1 2019-01-11 19:48 UTC

README

Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License

Configuration

Socialite expects its drivers to conform within the OAuth specifications. Unfortunately, Steam doesn't offer an OAuth solution, but rather OpenID. Because of this, we need to specify only an API key and a redirect URI. However, the SocialiteProviders/Manager package requires us to specify all three configuration keys (client_id, client_secret and redirect) and thus we must set the client_id to any value, regardless of it not being utilised.

config/services.php

'steam' => [
    'client_id' => null,
    'client_secret' => env('STEAM_KEY'),
    'redirect' => env('STEAM_REDIRECT_URI'),
],

.env

// other values above
STEAM_KEY=yourapikeyfortheservice
STEAM_REDIRECT_URI=https://example.com/login   

Documentation

Full documentation for using this provider can be found at Steam Documentation