fuel/fuel/packages/auth/classes/auth/opauth.php
protected function callback()
	{
		// fetch the response and decode it
		$this->response = \Input::get('opauth', false) and $this->response = unserialize(base64_decode($this->response));

		// did we receive a response at all?
		if ( ! $this->response)
		{
			throw new \OpauthException('no valid response received in the callback');
		}

		// did we receive one, but was it an error
		if (array_key_exists('error', $this->response))
		{
			throw new \OpauthException('Authentication error: the callback returned an error auth response');
		}

		// validate the response
		if ($this->get('auth') === null or $this->get('timestamp') === null or
			$this->get('signature') === null or $this->get('auth.provider') === null or $this->get('auth.uid') === null)
		{
			throw new \OpauthException('Invalid auth response: Missing key auth response components');
		}
		elseif ( ! $this->opauth->validate(sha1(print_r($this->get('auth'), true)), $this->get('timestamp'), $this->get('signature'), $reason))
		{
			throw new \OpauthException('Invalid auth response: '.$reason);
		}
	}
protected function callback()
	{
		// fetch the response and decode it
		$this->response = \Input::get('opauth', false) and $this->response = unserialize(base64_decode($this->response));

		// did we receive a response at all?
		if ( ! $this->response)
		{
			throw new \OpauthException('no valid response received in the callback');
		}

		// did we receive one, but was it an error
		if (array_key_exists('error', $this->response))
		{
			throw new \OpauthException('Authentication error: the callback returned an error auth response');
		}

		// validate the response
		if ($this->get('auth') === null or $this->get('timestamp') === null or
			$this->get('signature') === null or $this->get('auth.provider') === null or $this->get('auth.uid') === null)
		{
			throw new \OpauthException('Invalid auth response: Missing key auth response components');
		}
		elseif ( ! $this->opauth->validate(sha1(print_r($this->get('auth'), true)), $this->get('timestamp'), $this->get('signature'), $reason))
		{
			throw new \OpauthException('Invalid auth response: '.$reason);
		}
	}
protected function callback ( ) { // fetch the response and decode it $ this -> response = \ Input :: get ( 'opauth' , false ) and $ this -> response = unserialize ( base64_decode ( $ this -> response ) ) ; // did we receive a response at all? if ( ! $ this -> response ) { throw new \ OpauthException ( 'no valid response received in the callback' ) ; } // did we receive one, but was it an error if ( array_key_exists ( 'error' , $ this -> response ) ) { throw new \ OpauthException ( 'Authentication error: the callback returned an error auth response' ) ; } // validate the response if ( $ this -> get ( 'auth' ) === null or $ this -> get ( 'timestamp' ) === null or $ this -> get ( 'signature' ) === null or $ this -> get ( 'auth.provider' ) === null or $ this -> get ( 'auth.uid' ) === null ) { throw new \ OpauthException ( 'Invalid auth response: Missing key auth response components' ) ; } elseif ( ! $ this -> opauth -> validate ( sha1 ( print_r ( $ this -> get ( 'auth' ) , true ) ) , $ this -> get ( 'timestamp' ) , $ this -> get ( 'signature' ) , $ reason ) ) { throw new \ OpauthException ( 'Invalid auth response: ' . $ reason ) ; } }
fetch the callback response
fetch the callback response