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

  • SEARCH
  • Home
  • 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 7402455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:44:51+00:00 2026-05-29T04:44:51+00:00

I am not very familiar with the OAuth flow and/or encoding, but I’ve managed

  • 0

I am not very familiar with the OAuth flow and/or encoding, but I’ve managed to get my site (somewhat) working as an OAuth provider.

I am saying somehow, because for a long time I was getting the “Invalid signature” error when using the access token to fetch the protected information (I successfully got a request token, authorized it and got the access token).

So I looked a little over the signature generation method (I am using Drupal 7 and some undocumented modules). The code is:

public function build_signature($request, $consumer, $token) {
  $base_string = $request->get_signature_base_string();
  $request->base_string = $base_string;

  $key_parts = array(
    $consumer->secret,
    ($token) ? $token->secret : "" // the token object has a key and a secret property
  );

  $key_parts = OAuthUtil::urlencode_rfc3986($key_parts);
  $key = implode('&', $key_parts);

  return base64_encode(hash_hmac($this->algo, $base_string, $key, TRUE));
}

So this is using the $token secret to generate the signature for the request (plus the $base_string which is not important).

So I am guessing my question really is: does an application (client) that uses my OAuth, need to know the access token secret in order to be working? Is the secret a public information (am guessing not, hence the name). What am I doing wrong here?

  • 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-29T04:44:53+00:00Added an answer on May 29, 2026 at 4:44 am

    Yes they do.

    The access token secret (as well as the consumer secret) are used to sign the signature base string on the client side in subsequent requests to access protected resources, the same way as it’s done on the server side when the signature is being verified.

    The OAuth 1.0 specifications also state that the OAuth provider must return the access token secret when the access token has been generated, see section 6.3.2 of the specs.

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

Sidebar

Related Questions

I'm not very familiar with xpath. But I was working with xpath expressions and
I'm not sure why this isn't working but probably because I'm not very familiar
This might be a very simple thing for you gurus, but I'm not familiar
I am not very familiar with publish feature.But here is the scenario I have
I am not very familiar with SQL Server but I know the basics. I
I'm not very familiar with machine code, but I think this is a pretty
i'm not very familiar with the memory management in Objective-C but i try my
I'm not very familiar with the graph theory, but I'll try to explain my
I'm not very familiar with Java, but got the job to reverse the following
I am really not very familiar with javascript and its syntax, but I have

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.