yf_oauth_driver_steamcommunity class| File | plugins/oauth/classes/oauth/yf_oauth_driver_steamcommunity.class.php |
|---|---|
| Use | _class('oauth_driver_steamcommunity', 'classes/oauth/') |
| Extends | yf_oauth_driver2 |
A site sets them in its config with $PROJECT_CONF['oauth_driver_steamcommunity']['NAME'] = ...;
| Property | Default | Description |
|---|---|---|
$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'... |
None without a leading underscore.
_ hooks and helpers; not routable as page actionspublic 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;
}
from yf_oauth_driver2: _decode_result(), _storage_clean(), _storage_get(), _storage_set(), authorize(), get_access_token(), get_user_info(), login()