yf_oauth_driver_steamcommunity class

Fileplugins/oauth/classes/oauth/yf_oauth_driver_steamcommunity.class.php
Use_class('oauth_driver_steamcommunity', 'classes/oauth/')
Extendsyf_oauth_driver2

Public properties

A site sets them in its config with $PROJECT_CONF['oauth_driver_steamcommunity']['NAME'] = ...;

PropertyDefaultDescription
$url_captcha 'https://steamcommunity.com/public/captcha.php?gid='
$url_rsa_key 'https://steamcommunity.com/login/getrsakey'
$url_user_info 'http://api.steampowered.com/ISteamUser/GetPlayerSummaries'...

Public methods 1

None without a leading underscore.

Methods starting with _ hooks and helpers; not routable as page actions

public function _get_user_info_for_auth($raw = [])
  • $raw mixed Decoded GetPlayerSummaries response
    public function _get_user_info_for_auth($raw = [])
    {
        $player = $raw['response']['players'][0] ?? (array) $raw;
        $user_info = [
            'user_id' => $player['steamid'] ?? '',
            'login' => $player['steamid'] ?? '',
            'name' => $player['personaname'] ?? '',
            'email' => '',
            'avatar_url' => $player['avatarfull'] ?? ($player['avatar'] ?? ''),
            'profile_url' => $player['profileurl'] ?? '',
        ];
        return $user_info;
    }

Inherited methods

from yf_oauth_driver2: _decode_result(), _storage_clean(), _storage_get(), _storage_set(), authorize(), get_access_token(), get_user_info(), login()