}
     /**
      * @var Get the current user
      */
     $current_user = wp_get_current_user();
     /**
      * @var Set the current users ID
      */
     $userId = $current_user->ID;
     // @todo Not too sure what this is doing but we need to look at it.
     if ($userId != '') {
         $oauth->finishClientAuthorization(TRUE, $userId, $_GET);
         // AUTO AUTHORIZE
     }
     try {
         $auth_params = $oauth->getAuthorizeParams();
     } catch (OAuth2ServerException $oauthError) {
         $oauthError->sendHttpResponse();
     }
     break;
 case 'request_token':
     header('X-Frame-Options: DENY');
     error_reporting(0);
     try {
         $oauth->grantAccessToken();
     } catch (OAuth2ServerException $oauthError) {
         $oauthError->sendHttpResponse();
     }
     break;
 case 'request_access':
     error_reporting(0);
 /**
  * Tests OAuth2->getAuthorizeParams()
  */
 public function testGetAuthorizeParams()
 {
     // TODO Auto-generated OAuth2Test->testGetAuthorizeParams()
     $this->markTestIncomplete("getAuthorizeParams test not implemented");
     $this->fixture->getAuthorizeParams();
 }