MODPATH/oauth/classes/Kohana/OAuth/Request.php [ 90 ]
85 $this->method = strtoupper($method);
86 }
87
88 // Separate the URL and query string, which will be used as additional
89 // default parameters
90 list ($url, $default) = OAuth::parse_url($url);
91
92 // Set the request URL
93 $this->url = $url;
94
95 if ($default)
-
MODPATH/oauth/classes/Kohana/OAuth/Request.php [ 29 ] » Kohana_OAuth_Request->__construct(arguments)
0
string(3) "GET"
1
string(43) "https://api.twitter.com/oauth/request_token"
2
array(2) ( "oauth_consumer_key" => string(25) "Cfbkc52hRv1CgCSb3Y3BF9VOl" "oauth_callback" => string(52) "http://studiobacklot.tv/user/provider_return/twitter" )
24 */ 25 public static function factory($type, $method, $url = NULL, array $params = NULL) 26 { 27 $class = 'OAuth_Request_' . ucfirst($type); 28 29 return new $class($method, $url, $params); 30 } 31 32 /** 33 * @var integer connection timeout 34 */
-
MODPATH/oauth/classes/Kohana/OAuth/Provider.php [ 130 ] » Kohana_OAuth_Request::factory(arguments)
0
string(5) "token"
1
string(3) "GET"
2
string(43) "https://api.twitter.com/oauth/request_token"
3
array(2) ( "oauth_consumer_key" => string(25) "Cfbkc52hRv1CgCSb3Y3BF9VOl" "oauth_callback" => string(52) "http://studiobacklot.tv/user/provider_return/twitter" )
125 public function request_token(OAuth_Consumer $consumer, array $params = NULL) 126 { 127 // Create a new GET request for a request token with the required parameters 128 $request = OAuth_Request::factory('token', 'GET', $this->url_request_token(), array( 129 'oauth_consumer_key' => $consumer->key, 130 'oauth_callback' => $consumer->callback, 131 )); 132 133 if ($params) 134 { 135 // Load user parameters
-
MODPATH/extauth/classes/ExtAuth/Provider/OAuth.php [ 46 ] » Kohana_OAuth_Provider->request_token(arguments)
0
object OAuth_Consumer(3)
{ protected key => string(25) "Cfbkc52hRv1CgCSb3Y3BF9VOl" protected secret => string(50) "k8LzwmzQDO4gfoqog6MwYmfY34moDWrKueQguhk4VFrCPhnyjN" protected callback => string(52) "http://studiobacklot.tv/user/provider_return/twitter" }
41 public function redirect_url($return_url) 42 { 43 // Add the callback URL to the consumer 44 $this->consumer->callback(URL::site($return_url, true)); 45 // Get a request token for the consumer 46 $request_token = $this->provider->request_token($this->consumer); 47 Session::instance()->set('oauth_token', $request_token->token); 48 Session::instance()->set('oauth_token_secret', $request_token->secret); 49 // Redirect to the twitter login page 50 return $this->provider->authorize_url($request_token); 51 }
-
APPPATH/classes/Controller/User.php [ 391 ] » ExtAuth_Provider_OAuth->redirect_url(arguments)
0
string(53) "https://studiobacklot.tv/user/provider_return/twitter"
386 $this->action_provider_return(); 387 return; 388 } 389 390 if (is_object($provider)) { 391 $this->redirect($provider->redirect_url(URL::site('/user/provider_return/' . $provider_name, 'https'))); 392 return; 393 } 394 395 Message::error('Provider is not enabled. Please select another provider or log in normally.'); 396
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_User->action_provider()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_User(7)
{ public language => NULL public template => object View(2)
{ protected _file => string(53) "/var/app/current/application/views/layout/default.php" protected _data => array(6) ( "styles" => array(1) ( 0 => string(54) "media/vendor/fancybox-2.1.4/source/jquery.fancybox.css" ) "scripts" => array(6) ( 0 => string(39) "media/vendor/jquery-infinite-rotator.js" 1 => string(60) "media/vendor/jquery-validation-1.10.0/jquery.validate.min.js" 2 => string(63) "media/vendor/jquery-validation-1.10.0/additional-methods.min.js" 3 => string(45) "media/vendor/jquery/jquery.maskedinput.min.js" 4 => string(50) "media/vendor/jquery/html5placeholder.jquery.min.js" 5 => string(58) "media/vendor/fancybox-2.1.4/source/jquery.fancybox.pack.js" ) "language" => NULL "menu" => object View(2)
protected force_ssl => bool TRUE protected user => NULL public auto_render => bool TRUE public request => object Request(19){ protected _file => string(50) "/var/app/current/application/views/common/menu.php" protected _data => array(0) }
"welcome" => object View(2){ protected _file => string(53) "/var/app/current/application/views/common/welcome.php" protected _data => array(0) }
"sign_up" => object View(2){ protected _file => string(53) "/var/app/current/application/views/common/sign_up.php" protected _data => array(0) }
) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "welcome" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "User" protected _action => string(8) "provider" protected _uri => string(21) "user/provider/twitter" protected _external => bool FALSE protected _params => array(1) ( "id" => string(7) "twitter" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "welcome" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "User" protected _action => string(8) "provider" protected _uri => string(21) "user/provider/twitter" protected _external => bool FALSE protected _params => array(1) ( "id" => string(7) "twitter" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }109 $orig_response = $response = Response::factory(); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "welcome" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "User" protected _action => string(8) "provider" protected _uri => string(21) "user/provider/twitter" protected _external => bool FALSE protected _params => array(1) ( "id" => string(7) "twitter" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 128 ] » Kohana_Request->execute()
123 /** 124 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 125 * If no source is specified, the URI will be automatically detected. 126 */ 127 echo Request::factory(TRUE, array(), FALSE) 128 ->execute() 129 ->send_headers(TRUE) 130 ->body(); 131 }