Re: [oauth] Getting user credentials

2009-12-04 Thread cahit Eyigünlü
Take a look at this please :

Google's result :


oauth_token=*1%2FJefQs9cHFI8Ha2e5YjdkU*w&oauth_token_secret=*%2B74EaiHRmJ%2B1dBGUOOYIQL4H*





Authorization: OAuth oauth_version="1.0",
oauth_nonce="58b600e9773540aafa65cb41b31238cf",
oauth_timestamp="1259928326",
oauth_consumer_key="*www.file4share.net*",
oauth_token="*1%2FJefQs9cHFI8Ha2e5YjdkUw*",
oauth_signature_method="HMAC-SHA1",
oauth_signature="r%2B%2FoQx8Gjt1U5YW6FQd8aOahyhQ%3D"



Signature  =  838Ix+wBPh/XBjdUbLkVNlB9KMs=


when i use the bold red values i get the signature as given above but why :(
if there is a problem with my function i won't be able to complete steps
until here where could be the difference in your opinion?



2009/12/4 mat...@gmail 

> "Failed to verify 3 legged OAuth request" probably means your signature is
> invalid.
> "Invalid consumer key" means something different (ex. your consumer is not
> verified yet)
>
> I'm not good at .NET, but if your signature is same with that this ruby
> script generate, it should be OK.
> http://bit.ly/oauth-signature-checker
>
> On 2009/12/04, at 13:54, cahit Eyigünlü wrote:
>
> > I verified the domain and also i tryed the same on the localo but no way
> i always get the same result
> >
> >
> >
> >
> > Dim item As New OAuth.OAuthBase
> > Dim returns
> > Dim ts = item.GenerateTimeStamp
> > Dim nonce = item.GenerateNonce
> > Dim Sign = item.GenerateSignature(New Uri("
> http://www-opensocial.googleusercontent.com/api/people/@me/@self";),
> consumerKey, consumerSecret, Session("Token2"), Session("SecretToken2"),
> "GET", ts, nonce, "", returns)
> >
> > do you think is this create the right signature ? do you have any idea
> with vb ?
> >
> >
> > 2009/12/4 mat...@gmail 
> > The parameters seems OK.
> >
> > Then, it might be because your consumer's domain is not verified, or
> different with "www.file4share.net".
> >
> > On 2009/12/04, at 13:20, cahit Eyigünlü wrote:
> >
> > > With this information it is working on the google playground :( but i
> could not understand why it is telling me that
> > >
> > > 04 Aralık 2009 06:20 tarihinde cahit Eyigünlü <
> cahit.eyigu...@gmail.com> yazdı:
> > >
> > > Dim scope As String = "
> http://www-opensocial.googleusercontent.com/api/people/";
> > > Dim returnURL As String = "
> http://www.file4share.net/Returns/Gmail.aspx";
> > > Dim RequestFrom As String = "
> http://www-opensocial.googleusercontent.com/api/people/@me/@self";
> > >
> > >
> > > 2009/12/4 mat...@gmail 
> > > can you send the OAuth scope parameter you send when getting request
> token?
> > > it might not be Portable Contact API's one.
> > >
> > > the scope list is here, though I couldn't find any info about portable
> contact API's scope on google's documents :(
> > > http://googlecodesamples.com/oauth_playground/
> > >
> > > On 2009/12/04, at 13:00, cahit Eyigünlü wrote:
> > >
> > > > Sorry for second post sometimes also give this error :
> > > > Failed to verify 3 legged OAuth request. Request was invalid.Invalid
> AuthSub token.
> > > >
> > > > but i use the Token that given on the last step :(
> > > >
> > > >
> > > >
> > > >
> > > > 04 Aralık 2009 05:58 tarihinde cahit Eyigünlü <
> cahit.eyigu...@gmail.com> yazdı:
> > > > I am at the end very thank you for your helps i saved my day with
> your helps
> > > > one last thing to complete my operation i have an from :
> > > >
> > > > http://www-opensocial.googleusercontent.com/api/people/@me/@self
> > > > OAuth Authentication FailureInvalid consumer key, no app specified :
> www.file4share.net
> > > >
> > > > but my application registered on :
> https://www.google.com/accounts/ManageDomain
> > > > where could be the error do you have any idea?
> > > >
> > > >
> > > >
> > > >
> > > > 2009/12/4 mat...@gmail 
> > > > You are probably using OAuth1.0.
> > > > Google probably support oauth_callback only which is set when you set
> up your consumer.
> > > >
> > > > You need to send oauth_callback when you get request token if you
> want use OAuth1.0a.
> > > > OAuth had changed the timing of sending oauth_callback and added
> oauth_verifier.
> > > >
> > > > Check this document for the details.
> > > > http://oauth.net/core/1.0a
> > > >
> > > > I'm not sure your library support 1.0a though.
> > > > If not, use default oauth_callback which you set when you set up your
> consumer, and don't send oauth_verifier.
> > > >
> > > > On 2009/12/04, at 11:32, cahit Eyigünlü wrote:
> > > >
> > > > > I could not complete the third step when i try to get complete
> third step user is not comming back from the google if i use oauth_callback
> method user come back without oauth_verifier
> > > > >
> > > > > 04 Aralık 2009 03:56 tarihinde cahit Eyigünlü <
> cahit.eyigu...@gmail.com> yazdı:
> > > > > I have found from your sended article
> > > > > could you please check if i have any mistake
> > > > >
> > > > > First request to :
> > > > > https://www.google.com/accounts/OAuthGetRequestToken
> > > > > with scope tim

Re: [oauth] Getting user credentials

2009-12-04 Thread matake@gmail
OK, then compare the signature base strings which each library builds.
If they are same, the problem is probably in the library (Ruby or .NET? has a 
bug), so you should ask about the issue to library developer community.

On 2009/12/04, at 21:12, cahit Eyigünlü wrote:

> Take a look at this please :
> 
> Google's result :
> 
> oauth_token=1%2FJefQs9cHFI8Ha2e5YjdkUw&oauth_token_secret=%2B74EaiHRmJ%2B1dBGUOOYIQL4H
>  
>  
> Authorization: OAuth oauth_version="1.0", 
> oauth_nonce="58b600e9773540aafa65cb41b31238cf", oauth_timestamp="1259928326", 
> oauth_consumer_key="www.file4share.net", 
> oauth_token="1%2FJefQs9cHFI8Ha2e5YjdkUw", oauth_signature_method="HMAC-SHA1", 
> oauth_signature="r%2B%2FoQx8Gjt1U5YW6FQd8aOahyhQ%3D"
>  
> Signature  =  838Ix+wBPh/XBjdUbLkVNlB9KMs=
> 
> 
> 
> when i use the bold red values i get the signature as given above but why :( 
> if there is a problem with my function i won't be able to complete steps 
> until here where could be the difference in your opinion?
> 
> 
> 
> 
> 2009/12/4 mat...@gmail 
> "Failed to verify 3 legged OAuth request" probably means your signature is 
> invalid.
> "Invalid consumer key" means something different (ex. your consumer is not 
> verified yet)
> 
> I'm not good at .NET, but if your signature is same with that this ruby 
> script generate, it should be OK.
> http://bit.ly/oauth-signature-checker
> 
> On 2009/12/04, at 13:54, cahit Eyigünlü wrote:
> 
> > I verified the domain and also i tryed the same on the localo but no way i 
> > always get the same result
> >
> >
> >
> >
> > Dim item As New OAuth.OAuthBase
> > Dim returns
> > Dim ts = item.GenerateTimeStamp
> > Dim nonce = item.GenerateNonce
> > Dim Sign = item.GenerateSignature(New 
> > Uri("http://www-opensocial.googleusercontent.com/api/people/@me/@self";), 
> > consumerKey, consumerSecret, Session("Token2"), Session("SecretToken2"), 
> > "GET", ts, nonce, "", returns)
> >
> > do you think is this create the right signature ? do you have any idea with 
> > vb ?
> >
> >
> > 2009/12/4 mat...@gmail 
> > The parameters seems OK.
> >
> > Then, it might be because your consumer's domain is not verified, or 
> > different with "www.file4share.net".
> >
> > On 2009/12/04, at 13:20, cahit Eyigünlü wrote:
> >
> > > With this information it is working on the google playground :( but i 
> > > could not understand why it is telling me that
> > >
> > > 04 Aralık 2009 06:20 tarihinde cahit Eyigünlü  
> > > yazdı:
> > >
> > > Dim scope As String = 
> > > "http://www-opensocial.googleusercontent.com/api/people/";
> > > Dim returnURL As String = 
> > > "http://www.file4share.net/Returns/Gmail.aspx";
> > > Dim RequestFrom As String = 
> > > "http://www-opensocial.googleusercontent.com/api/people/@me/@self";
> > >
> > >
> > > 2009/12/4 mat...@gmail 
> > > can you send the OAuth scope parameter you send when getting request 
> > > token?
> > > it might not be Portable Contact API's one.
> > >
> > > the scope list is here, though I couldn't find any info about portable 
> > > contact API's scope on google's documents :(
> > > http://googlecodesamples.com/oauth_playground/
> > >
> > > On 2009/12/04, at 13:00, cahit Eyigünlü wrote:
> > >
> > > > Sorry for second post sometimes also give this error :
> > > > Failed to verify 3 legged OAuth request. Request was invalid.Invalid 
> > > > AuthSub token.
> > > >
> > > > but i use the Token that given on the last step :(
> > > >
> > > >
> > > >
> > > >
> > > > 04 Aralık 2009 05:58 tarihinde cahit Eyigünlü 
> > > >  yazdı:
> > > > I am at the end very thank you for your helps i saved my day with your 
> > > > helps
> > > > one last thing to complete my operation i have an from :
> > > >
> > > > http://www-opensocial.googleusercontent.com/api/people/@me/@self
> > > > OAuth Authentication FailureInvalid consumer key, no app specified : 
> > > > www.file4share.net
> > > >
> > > > but my application registered on : 
> > > > https://www.google.com/accounts/ManageDomain
> > > > where could be the error do you have any idea?
> > > >
> > > >
> > > >
> > > >
> > > > 2009/12/4 mat...@gmail 
> > > > You are probably using OAuth1.0.
> > > > Google probably support oauth_callback only which is set when you set 
> > > > up your consumer.
> > > >
> > > > You need to send oauth_callback when you get request token if you want 
> > > > use OAuth1.0a.
> > > > OAuth had changed the timing of sending oauth_callback and added 
> > > > oauth_verifier.
> > > >
> > > > Check this document for the details.
> > > > http://oauth.net/core/1.0a
> > > >
> > > > I'm not sure your library support 1.0a though.
> > > > If not, use default oauth_callback which you set when you set up your 
> > > > consumer, and don't send oauth_verifier.
> > > >
> > > > On 2009/12/04, at 11:32, cahit Eyigünlü wrote:
> > > >
> > > > > I could not complete the third step when i try to get complete third 
> > > > > step user is not comming back from the google if i use oaut

[oauth] how to get AuthSubRevokeToken

2009-12-04 Thread Pushpa
Hi

I am bot able to get AuthSubRevokeToken
Below is my script

step1.php

http://www.google.com/m8/feeds/';
$next = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";

$token = @$_GET['token'];  // only a single use token
$sessionToken = AuthSubSessionToken($token);

if(!$token)
{
echo "https://www.google.com/accounts/AuthSubRequest?scope=
$scope&session=$session&secure=$secure&next=$next\">Sign in to Google";
exit;
}
else
{
header('location:step2.php?token='.$token.'&session_token='.
$sessionToken);
}



function AuthSubSessionToken($token) {
$ch = curl_init("https://www.google.com/accounts/
AuthSubSessionToken");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: AuthSub
token="' . trim($token) . '"'));

$result = curl_exec($ch);
curl_close($ch);
$splitStr = split("=", $result);

return trim($splitStr[1]);
}

?>

step2.php

http://www.google.com/m8/feeds/';
$next = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";

$token = $_GET['token'];  // only a single use token
$sessionToken = $_GET['session_token'];  // only a single use
token

   $AuthSubRevokeToken = AuthSubRevokeToken($sessionToken);
   $AuthSubTokenInfo = AuthSubTokenInfo($token);

   function AuthSubRevokeToken($token) {
 $ch = curl_init("https://www.google.com/accounts/
AuthSubRevokeToken");
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt($ch, CURLOPT_FAILONERROR, true);
 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization:
AuthSub token="'.$token.'"'));

 $result = curl_exec($ch);
 curl_close($ch);
  echo 'AuthSubRevokeToken= '.$result.'';
 $splitStr = split("=", $result);

 //return trim($splitStr[1]);
   }
   function AuthSubTokenInfo($token) {
 $ch = curl_init("https://www.google.com/accounts/
AuthSubTokenInfo");
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt($ch, CURLOPT_FAILONERROR, true);
 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization:
AuthSub token="' . trim($token) . '"'));

 $result = curl_exec($ch);
 curl_close($ch);
   echo 'AuthSubTokenInfo= '.$result.'';
 $splitStr = split("=", $result);

 return trim($splitStr[1]);
   }
   ?>

--

You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To post to this group, send email to oa...@googlegroups.com.
To unsubscribe from this group, send email to 
oauth+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/oauth?hl=en.




Re: [oauth] Getting user credentials

2009-12-04 Thread cahit Eyigünlü
This is my base string  :

GET&http%3A%2F%2Fwww-opensocial.googleusercontent.com
%2Fapi%2Fpeople%2F%40me%2F%40self&oauth_consumer_key*%3Dwww.file4share.net
%26*oauth_nonce*%3D58b600e9773540aafa65cb41b31238cf%26*
oauth_signature_method*%3DHMAC-SHA1%26*oauth_timestamp*%3D1259928326%26*
oauth_token*%3D1%252FJefQs9cHFI8Ha2e5YjdkUw%26*oauth_version*%3D*1.0
this is google's

GET&http%3A%2F%2Fwww-opensocial.googleusercontent.com%2Fapi%2Fpeople%2F%40me%2F%40self&oauth_consumer_key%3Dwww.file4share.net%26oauth_nonce%3D58b600e9773540aafa65cb41b31238cf%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1259928326%26oauth_token%3D1%252FJefQs9cHFI8Ha2e5YjdkUw%26oauth_version%3D1.0

Both of same but generated signatures are different , the most interesting
thing if my signature function is wrong how can i come to the this step ? i
am really sure mine is right so what is wrong on my signature string , could
you please write me in this step for generating signature is this right :
url :http://www-opensocial.googleusercontent.com/api/people/@me/@self
consumer key
consumer secret
second token string
second token secret string
method "GET"
Time span
Nonce


is there any thing else or do i need to do any changes on this paramaters ?




2009/12/4 mat...@gmail 

> OK, then compare the signature base strings which each library builds.
> If they are same, the problem is probably in the library (Ruby or .NET? has
> a bug), so you should ask about the issue to library developer community.
>
> On 2009/12/04, at 21:12, cahit Eyigünlü wrote:
>
> > Take a look at this please :
> >
> > Google's result :
> >
> >
> oauth_token=1%2FJefQs9cHFI8Ha2e5YjdkUw&oauth_token_secret=%2B74EaiHRmJ%2B1dBGUOOYIQL4H
> >
> >
> > Authorization: OAuth oauth_version="1.0",
> oauth_nonce="58b600e9773540aafa65cb41b31238cf",
> oauth_timestamp="1259928326", oauth_consumer_key="www.file4share.net",
> oauth_token="1%2FJefQs9cHFI8Ha2e5YjdkUw",
> oauth_signature_method="HMAC-SHA1",
> oauth_signature="r%2B%2FoQx8Gjt1U5YW6FQd8aOahyhQ%3D"
> >
> > Signature  =  838Ix+wBPh/XBjdUbLkVNlB9KMs=
> >
> >
> >
> > when i use the bold red values i get the signature as given above but why
> :( if there is a problem with my function i won't be able to complete steps
> until here where could be the difference in your opinion?
> >
> >
> >
> >
> > 2009/12/4 mat...@gmail 
> > "Failed to verify 3 legged OAuth request" probably means your signature
> is invalid.
> > "Invalid consumer key" means something different (ex. your consumer is
> not verified yet)
> >
> > I'm not good at .NET, but if your signature is same with that this ruby
> script generate, it should be OK.
> > http://bit.ly/oauth-signature-checker
> >
> > On 2009/12/04, at 13:54, cahit Eyigünlü wrote:
> >
> > > I verified the domain and also i tryed the same on the localo but no
> way i always get the same result
> > >
> > >
> > >
> > >
> > > Dim item As New OAuth.OAuthBase
> > > Dim returns
> > > Dim ts = item.GenerateTimeStamp
> > > Dim nonce = item.GenerateNonce
> > > Dim Sign = item.GenerateSignature(New Uri("
> http://www-opensocial.googleusercontent.com/api/people/@me/@self";),
> consumerKey, consumerSecret, Session("Token2"), Session("SecretToken2"),
> "GET", ts, nonce, "", returns)
> > >
> > > do you think is this create the right signature ? do you have any idea
> with vb ?
> > >
> > >
> > > 2009/12/4 mat...@gmail 
> > > The parameters seems OK.
> > >
> > > Then, it might be because your consumer's domain is not verified, or
> different with "www.file4share.net".
> > >
> > > On 2009/12/04, at 13:20, cahit Eyigünlü wrote:
> > >
> > > > With this information it is working on the google playground :( but i
> could not understand why it is telling me that
> > > >
> > > > 04 Aralık 2009 06:20 tarihinde cahit Eyigünlü <
> cahit.eyigu...@gmail.com> yazdı:
> > > >
> > > > Dim scope As String = "
> http://www-opensocial.googleusercontent.com/api/people/";
> > > > Dim returnURL As String = "
> http://www.file4share.net/Returns/Gmail.aspx";
> > > > Dim RequestFrom As String = "
> http://www-opensocial.googleusercontent.com/api/people/@me/@self";
> > > >
> > > >
> > > > 2009/12/4 mat...@gmail 
> > > > can you send the OAuth scope parameter you send when getting request
> token?
> > > > it might not be Portable Contact API's one.
> > > >
> > > > the scope list is here, though I couldn't find any info about
> portable contact API's scope on google's documents :(
> > > > http://googlecodesamples.com/oauth_playground/
> > > >
> > > > On 2009/12/04, at 13:00, cahit Eyigünlü wrote:
> > > >
> > > > > Sorry for second post sometimes also give this error :
> > > > > Failed to verify 3 legged OAuth request. Request was
> invalid.Invalid AuthSub token.
> > > > >
> > > > > but i use the Token that given on the last step :(
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 04 Aralık 2009 05:58 tarihinde cahit Eyigünlü <
> cahit.eyigu...@gmail.com> yazdı:
> > > > > I am at the end ve

Re: [oauth] how to get AuthSubRevokeToken

2009-12-04 Thread cahit Eyigünlü
how could you get user credentials after getting auth token ? could you
please tell me :S i got down on this step
My generated signature on the last step after getting auth token is
different then google's generated signature, I tryed to create with the same
values the signature but they are not same :S
so where could be problem in your opinion ?
The results as given below:


This is my base string  :

GET&http%3A%2F%2Fwww-opensocial.googleusercontent.com
%2Fapi%2Fpeople%2F%40me%2F%40self&oauth_consumer_key*%3Dwww.file4share.net
%26*oauth_nonce*%3D58b600e9773540aafa65cb41b31238cf%26*
oauth_signature_method*%3DHMAC-SHA1%26*oauth_timestamp*%3D1259928326%26*
oauth_token*%3D1%252FJefQs9cHFI8Ha2e5YjdkUw%26*oauth_version*%3D*1.0
this is google's

GET&http%3A%2F%2Fwww-opensocial.googleusercontent.com
%2Fapi%2Fpeople%2F%40me%2F%40self&oauth_consumer_key%3Dwww.file4share.net
%26oauth_nonce%3D58b600e9773540aafa65cb41b31238cf%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1259928326%26oauth_token%3D1%252FJefQs9cHFI8Ha2e5YjdkUw%26oauth_version%3D1.0

Both of same but generated signatures are different , the most interesting
thing if my signature function is wrong how can i come to the this step ? i
am really sure mine is right so what is wrong on my signature string , could
you please write me in this step for generating signature is this right :
url :http://www-opensocial.googleusercontent.com/api/people/@me/@self
consumer key
consumer secret
second token string
second token secret string
method "GET"
Time span
Nonce


but google send me 401 or 403 error whatever i tryed i could not generated
the same signature with google for the same values :S
if my generate signature function is wrong how could i come to the this step
or do you use for signature any thing else or are there any function more ?





2009/12/4 Pushpa 

> Hi
>
> I am bot able to get AuthSubRevokeToken
> Below is my script
>
> step1.php
>
>  $secure = 0;
> $session = 1;
> $scope = 'http://www.google.com/m8/feeds/';
> $next = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";
>
> $token = @$_GET['token'];  // only a single use token
> $sessionToken = AuthSubSessionToken($token);
>
> if(!$token)
> {
> echo "https://www.google.com/accounts/AuthSubRequest?scope=
> $scope&session=$session&secure=$secure&next=$next\">Sign
> in to Google a>";
> exit;
> }
> else
> {
> header('location:step2.php?token='.$token.'&session_token='.
> $sessionToken);
> }
>
>
>
> function AuthSubSessionToken($token) {
> $ch = curl_init("https://www.google.com/accounts/
> AuthSubSessionToken");
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
> curl_setopt($ch, CURLOPT_FAILONERROR, true);
> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
> curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: AuthSub
> token="' . trim($token) . '"'));
>
> $result = curl_exec($ch);
> curl_close($ch);
> $splitStr = split("=", $result);
>
> return trim($splitStr[1]);
> }
>
> ?>
>
> step2.php
>
>$secure = 0;
>$session = 1;
>$scope = 'http://www.google.com/m8/feeds/';
>$next = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";
>
>$token = $_GET['token'];  // only a single use token
>$sessionToken = $_GET['session_token'];  // only a single use
> token
>
>   $AuthSubRevokeToken = AuthSubRevokeToken($sessionToken);
>   $AuthSubTokenInfo = AuthSubTokenInfo($token);
>
>   function AuthSubRevokeToken($token) {
> $ch = curl_init("https://www.google.com/accounts/
> AuthSubRevokeToken");
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
> curl_setopt($ch, CURLOPT_FAILONERROR, true);
> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
> curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization:
> AuthSub token="'.$token.'"'));
>
> $result = curl_exec($ch);
> curl_close($ch);
>  echo 'AuthSubRevokeToken= '.$result.'';
> $splitStr = split("=", $result);
>
> //return trim($splitStr[1]);
>   }
>   function AuthSubTokenInfo($token) {
> $ch = curl_init("https://www.google.com/accounts/
> AuthSubTokenInfo");
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
> curl_setopt($ch, CURLOPT_FAILONERROR, true);
> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
> curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization:
> AuthSub token="' . trim($token) . '"'));
>
> $result = curl_exec($ch);
> curl_close($ch);
>   echo 'AuthSubTokenInfo= '.$result.'';
> $splitStr = split("=", $result);
>
> return trim($splitStr[1]);
>   }
>   ?>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "OAuth" group.
> To post to this group, send email to oa...@googlegroups.com.
> To unsubscribe from this group, send email to
> oauth+uns

Re: [oauth] test OAuth consumer and service provider

2009-12-04 Thread Lukas Rosenstock
Hi!
I think this looks very nice and will help to understand the flow and
is good for debugging. We might use it to test the upgrade of our
internal OAuth use from 1.0 to 1.0a.

Lukas

2009/11/18 k42b3 :
> hi OAuth folks,
>
> I like to announce a test consumer and service provider.
>
> http://dev.k42b3.com/index.php/oauth
>
> this is a implementation of the specification OAuth 1.0 Revision A. Because
> I missed a test server
> while Iam trying to understand the concept of OAuth ... I developed this
> OAuth service provider and
> consumer. This should help people to understand OAuth and to test
> applications that are based on it.
>
>
> best regards
> k42b3
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "OAuth" group.
> To post to this group, send email to oa...@googlegroups.com.
> To unsubscribe from this group, send email to
> oauth+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/oauth?hl=.
>



-- 
http://lukasrosenstock.net/

--

You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To post to this group, send email to oa...@googlegroups.com.
To unsubscribe from this group, send email to 
oauth+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/oauth?hl=en.