Invisnik\LaravelSteamAuth\SteamAuth::buildUrl PHP Метод

buildUrl() приватный Метод

Build the Steam login URL
private buildUrl ( string $return = null ) : string
$return string A custom return to URL
Результат string
    private function buildUrl($return = null)
    {
        if (is_null($return)) {
            $return = url('/', [], Config::get('steam-auth.https'));
        }
        if (!is_null($return) && !$this->validateUrl($return)) {
            throw new Exception('The return URL must be a valid URL with a URI Scheme or http or https.');
        }
        $params = array('openid.ns' => 'http://specs.openid.net/auth/2.0', 'openid.mode' => 'checkid_setup', 'openid.return_to' => $return, 'openid.realm' => (Config::get('steam-auth.https') ? 'https' : 'http') . '://' . $this->request->server('HTTP_HOST'), 'openid.identity' => 'http://specs.openid.net/auth/2.0/identifier_select', 'openid.claimed_id' => 'http://specs.openid.net/auth/2.0/identifier_select');
        return self::OPENID_URL . '?' . http_build_query($params, '', '&');
    }