You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Chris Chabot <ch...@xs4all.nl> on 2008/07/01 10:55:17 UTC

Re: Hardcoded domain in SigningFetcher?

Yep, that was put in there for the Google IO presentations to make it  
demo-able.

I distinctly remember there was some problem with the domain param  
from the security token ($this->authToken in that scope) ... but can't  
recollect what it was.

I'll change it to ... = $domain and lets see what happens :) Do you  
still have some tests setup there you could use to validate it? Would  
be much appreciated!

	-- Chris

On Jun 30, 2008, at 8:41 PM, Gonzalo Aune wrote:

> Chris,
>
> i think we have a bug in SigningFetcher, it seems that the domain  
> contained
> in the authToken, is hardcoded in line 191 with the line:
>
> $msgParams[OAuth::$OAUTH_CONSUMER_KEY] = 'partuza.chabotc.com'; // 
> $domain;
>
> Can you check this?
>
> G.-


Re: Hardcoded domain in SigningFetcher?

Posted by Chris Chabot <ch...@xs4all.nl>.
Ah here's the real culprit:

public static function from_consumer_and_token($consumer, $token,  
$http_method, $http_url, $parameters = NULL)
{
	$parameters = is_array($parameters) ? $parameters : array();
	$defaults = array("oauth_nonce" => OAuthRequest::generate_nonce(),
			"oauth_timestamp" => OAuthRequest::generate_timestamp(),
			"oauth_consumer_key" => $consumer->key, 'synd' => 'partuza',
			'container' => 'partuza');

Could you please take a look at that Gonzalo? Your a bit more familiar  
in that code then me. Obviously that should be using the  
GadgetContext's getContainer(), but the context isn't available in  
that scope, so that's something that's gota get fixed :)

	-- Chris

On Jul 1, 2008, at 10:55 AM, Chris Chabot wrote:

> Yep, that was put in there for the Google IO presentations to make  
> it demo-able.
>
> I distinctly remember there was some problem with the domain param  
> from the security token ($this->authToken in that scope) ... but  
> can't recollect what it was.
>
> I'll change it to ... = $domain and lets see what happens :) Do you  
> still have some tests setup there you could use to validate it?  
> Would be much appreciated!
>
> 	-- Chris
>
> On Jun 30, 2008, at 8:41 PM, Gonzalo Aune wrote:
>
>> Chris,
>>
>> i think we have a bug in SigningFetcher, it seems that the domain  
>> contained
>> in the authToken, is hardcoded in line 191 with the line:
>>
>> $msgParams[OAuth::$OAUTH_CONSUMER_KEY] = 'partuza.chabotc.com'; // 
>> $domain;
>>
>> Can you check this?
>>
>> G.-