Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3956620
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:23:12+00:00 2026-05-20T02:23:12+00:00

all. an issue about google oauth, the output url always return signature_invalid . I

  • 0

all. an issue about google oauth, the output url always return
signature_invalid . I have no idea.

<?php
$url="https://www.google.com/accounts/OAuthGetRequestToken?";

$scope ="scope=".urlencode(sprintf("https://www.google.com/calendar/feeds/%s/settings",urlencode("test@gmail.com")));
$oauth_consumer_key="&oauth_consumer_key=anonymous";
$oauth_nonce="&oauth_nonce=1111111111111111111111111111111111111111111111111111111111111111";
$oauth_signature_method=sprintf("&oauth_signature_method=%s","HMAC-SHA1");
$oauth_timestamp=sprintf("&oauth_timestamp=%s",time());
$oauth_signature="&oauth_signature=";


$base_string = $scope.$oauth_consumer_key.$oauth_nonce.$oauth_signature_method.$oauth_timestamp;

$call=$url.$base_string;

$call=$call.$oauth_signature.base64_encode(hash_hmac("sha1",urlencode($base_string),"anonymous",true));

echo $call."\n";
/* file_get_contents($call); */


?>

I reference
http://oauth.net/core/1.0/#rfc.section.9.1.1 and
http://code.google.com/intl/zh-TW/apis/accounts/docs/OAuth_ref.html#RequestToken

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:23:13+00:00Added an answer on May 20, 2026 at 2:23 am

    ok,I find some people’s answer.

    at PHP Oauth signature_invalid

    I can get the correct result. but need to check where is wrong in my code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HI all, I have an issue where i have to search rows in a
Maybe seeing the issue would help you all a little: https://ws.onehub.com/files/nzvrbj4s Screen Shots: https://ws.onehub.com/files/9rw3li12
I currently have a issue with firefox, where all other browser behave in the
I have an issue about type compatibility - check this example: GLbyte vShaderStr[] =
I have search for this on SO but all posts relating to the issue
I have some question about the privacy issues using Google Analytics. I've heard that
I have issue where I need store info about users in DB and authorize
I have a question about duplicate content issue. I have pages with article, one
I am new to Windows forms and having an issue handling all the user
Hi All I am currently having an issue calling a WCF service from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.