Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.76 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.76 KB

Steam OpenID Provider for Laravel Socialite

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