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, '', '&');
}