public function attemptAuthentication($provider, Hybrid_Auth $hybridauth)
	{
		try
		{
			$this->provider = $provider;
			$adapter = $hybridauth->authenticate($provider);
			$this->setAdapter($adapter);
			$this->setAdapterProfile($adapter->getUserProfile());
			$profile = $this->findProfile();

			return $profile;
		}
		catch (\Exception $e)
		{
			var_dump($e->getMessage());
		}
	}
public function attemptAuthentication($provider, Hybrid_Auth $hybridauth)
	{
		try
		{
			$this->provider = $provider;
			$adapter = $hybridauth->authenticate($provider);
			$this->setAdapter($adapter);
			$this->setAdapterProfile($adapter->getUserProfile());
			$profile = $this->findProfile();

			return $profile;
		}
		catch (\Exception $e)
		{
			var_dump($e->getMessage());
		}
	}
public function attemptAuthentication ( $ provider , Hybrid_Auth $ hybridauth ) { try { $ this -> provider = $ provider ; $ adapter = $ hybridauth -> authenticate ( $ provider ) ; $ this -> setAdapter ( $ adapter ) ; $ this -> setAdapterProfile ( $ adapter -> getUserProfile ( ) ) ; $ profile = $ this -> findProfile ( ) ; return $ profile ; } catch ( \ Exception $ e ) { var_dump ( $ e -> getMessage ( ) ) ; } }
Attempt a login with a given provider

@param string		$provider
@param Hybrid_Auth	$hybridauth
Attempt a login with a given provider