views:

33

answers:

1

SO I am testing a Rest OAuth implementation. My testing tool will send the HTTP Request, but I need to prepare the Authorization header.

What I need: I want a valid Authorization Header

What I have: All the headers except the oauth_signature I also have the 2 secrets, the token_secret and the consumer_secret. I also posses the access_token. So It really boils down to, having to sign this request. How do I do that?

Summary: I simply need to populate the oauth_signature portion of the Authorization header for a RESTful service. How do I do it?

Basically:

oAuthHeader="OAuth"; oAuthHeader=oAuthHeader+" oauth_signature_method="+oauth_signature_method; oAuthHeader=oAuthHeader+",oauth_version="+oauth_version; oAuthHeader=oAuthHeader+",oauth_nonce="+oauth_nonce; oAuthHeader=oAuthHeader+",oauth_timestamp="+oauth_timestamp; oAuthHeader=oAuthHeader+",oauth_consumer_key="+oauth_consumer_key; oAuthHeader=oAuthHeader+",oauth_token="+oauth_token; oAuthHeader=oAuthHeader+",oauth_signature="+oauth_signature;

Authorization = oAuthHeader;

My problem is I do not have the oauth_signature portion of it. And I do not know how to get it. Help please?

A: 

http://oauth.net/code/ examples

Aaron Saunders