ColdFusion OAuth Test Server

OAuth Test Server

Instructions for Use

Test server with predefined (static) key and secret:

  • consumer secret = [#sTestConsumerSecret#]
  • consumer key = [#sTestConsumerKey#]

Step 1 : Getting a Request Token :

  • request token endpoint : #sRequestTokenURL#
    * parameters needed :
    • oauth_version
    • oauth_nonce
    • oauth_timestamp
    • oauth_consumer_key
    • oauth_signature
    • oauth_signature_method

A successful request will return the following:

oauth_token=requestkey&oauth_token_secret=requestsecret

current values:
oauth_token=#sRTKey#&oauth_token_secret=#sRTSecret#

An unsuccessful request will attempt to describe what went wrong.

Example :

#oRequestReq.getString()#

Test output - signature string :
#oRequestReq.signatureBaseString()#

Step 2 : Getting an Access Token :

The Request Token provided above is already authorized, you may use it to request an Access Token right away.

  • access token endpoint : #sAccessTokenURL#
  • * parameters needed :
    • oauth_version
    • oauth_nonce
    • oauth_timestamp
    • oauth_consumer_key
    • oauth_token
    • oauth_signature
    • oauth_signature_method

A successful request will return the following:

oauth_token=accesskey&oauth_token_secret=accesssecret

current values:
oauth_token=#sATKey#&oauth_token_secret=#sATSecret#

An unsuccessful request will attempt to describe what went wrong.

Example

#oAccessReq.getString()#

Test output - signature string :
#oAccessReq.signatureBaseString()#

Making Authenticated Calls

Using your Access Token you can make authenticated calls.

A successful request will echo the non-OAuth parameters sent to it, for example:

method=foo&bar=baz

An unsuccessful request will attempt to describe what went wrong.

Example

#oEchoReq.getString()#

Test output - signature string :
#oEchoReq.signatureBaseString()#

Supported signature methods :

#sItem#