/** Initiate OpenID authentication sequence @return bool @public **/ function auth() { $root = self::$vars['PROTOCOL'] . '://' . $_SERVER['SERVER_NAME']; if (!isset($this->trust_root)) { $this->trust_root = $root . (self::$vars['BASE'] ?: '/'); } if (!isset($this->return_to)) { $this->return_to = $root . $_SERVER['REQUEST_URI']; } $this->mode = 'checkid_setup'; if (isset($this->provider)) { // OpenID 2.0 $op = $this->provider; if (!isset($this->claimed_id)) { $this->claimed_id = $this->identity; } } elseif (isset($this->server)) { // OpenID 1.1 $op = $this->server; } else { return FALSE; } $var = array(); foreach ($this->args as $key => $val) { $var['openid.' . $key] = $val; } $fw = new F3instance(); $fw->reroute($op . '?' . http_build_query($var)); }