OAuth 1.0a Request Authorization for Node and Browser
#28
#8
##Options
var oauth = OAuth(/* options */);
consumer
: Object
Required
your consumer keys{
public: <your consumer key>,
secret: <your consumer secret>
}
signature_method
: String
default 'HMAC-SHA1'
nonce_length
: Int
default 32
version
: String
default '1.0'
parameter_seperator
: String
for header only, default ', '
. Note that there is a space after ,
last_ampersand
: Bool
default true
. For some services if there is no Token Secret then no need &
at the end. Check oauth doc for more informationoauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a '&' character (ASCII code 38), even if either secret is empty
var oauth = Oauth();
or
var oauth = new Oauth();
still works well
.authorizer
change to .authorize
.deParam
split into 2 functions: .deParam
and .deParamUrl
.authorize(request_data)
instead of .authorize(request_data, {})