public function loginAction() {
		$uri = new \TYPO3\Flow\Http\Uri('https://api.twitter.com/oauth/request_token');
		$request = \TYPO3\Flow\Http\Request::create($uri, 'POST');
		$request->setContent('');
		$callbackUri = $this->uriBuilder->reset()->setCreateAbsoluteUri(TRUE)->uriFor('authenticate', array(), $this->request->getControllerName(), $this->request->getControllerPackageKey(), $this->request->getControllerSubpackageKey());
		$request = $this->requestSignatureGenerator->signRequest($request, $callbackUri);

		$response = $this->client->sendRequest($request);
		$responseData = array();
		parse_str($response->getContent(), $responseData);
		if ($response->getStatusCode() !== 200 || !isset($responseData['oauth_callback_confirmed']) || $responseData['oauth_callback_confirmed'] !== 'true') {
			throw new Exception($response->getStatus(), 1426084485);
		}

		$this->requestSignatureGenerator->setTokenData($responseData['oauth_token'], $responseData['oauth_token_secret']);

		$this->redirectToUri('https://api.twitter.com/oauth/authenticate?oauth_token=' . $responseData['oauth_token'], 0, 302);
	}
public function loginAction() {
		$uri = new \TYPO3\Flow\Http\Uri('https://api.twitter.com/oauth/request_token');
		$request = \TYPO3\Flow\Http\Request::create($uri, 'POST');
		$request->setContent('');
		$callbackUri = $this->uriBuilder->reset()->setCreateAbsoluteUri(TRUE)->uriFor('authenticate', array(), $this->request->getControllerName(), $this->request->getControllerPackageKey(), $this->request->getControllerSubpackageKey());
		$request = $this->requestSignatureGenerator->signRequest($request, $callbackUri);

		$response = $this->client->sendRequest($request);
		$responseData = array();
		parse_str($response->getContent(), $responseData);
		if ($response->getStatusCode() !== 200 || !isset($responseData['oauth_callback_confirmed']) || $responseData['oauth_callback_confirmed'] !== 'true') {
			throw new Exception($response->getStatus(), 1426084485);
		}

		$this->requestSignatureGenerator->setTokenData($responseData['oauth_token'], $responseData['oauth_token_secret']);

		$this->redirectToUri('https://api.twitter.com/oauth/authenticate?oauth_token=' . $responseData['oauth_token'], 0, 302);
	}
public function loginAction ( ) { $ uri = new \ TYPO3 \ Flow \ Http \ Uri ( 'https://api.twitter.com/oauth/request_token' ) ; $ request = \ TYPO3 \ Flow \ Http \ Request :: create ( $ uri , 'POST' ) ; $ request -> setContent ( '' ) ; $ callbackUri = $ this -> uriBuilder -> reset ( ) -> setCreateAbsoluteUri ( TRUE ) -> uriFor ( 'authenticate' , array ( ) , $ this -> request -> getControllerName ( ) , $ this -> request -> getControllerPackageKey ( ) , $ this -> request -> getControllerSubpackageKey ( ) ) ; $ request = $ this -> requestSignatureGenerator -> signRequest ( $ request , $ callbackUri ) ; $ response = $ this -> client -> sendRequest ( $ request ) ; $ responseData = array ( ) ; parse_str ( $ response -> getContent ( ) , $ responseData ) ; if ( $ response -> getStatusCode ( ) !== 200 || ! isset ( $ responseData [ 'oauth_callback_confirmed' ] ) || $ responseData [ 'oauth_callback_confirmed' ] !== 'true' ) { throw new Exception ( $ response -> getStatus ( ) , 1426084485 ) ; } $ this -> requestSignatureGenerator -> setTokenData ( $ responseData [ 'oauth_token' ] , $ responseData [ 'oauth_token_secret' ] ) ; $ this -> redirectToUri ( 'https://api.twitter.com/oauth/authenticate?oauth_token=' . $ responseData [ 'oauth_token' ] , 0 , 302 ) ; }
Initializes the Twitter Authentication process. Will redirect to twitter for the user to login, setting the oauth callback url to this controllers authenticate method.

@return void
@throws Exception
Initializes the Twitter Authentication process . Will redirect to twitter for the user to login setting the oauth callback url to this controllers authenticate method .