server | client

OAuth Test Server

Instructions for Use

This is a test server with a predefined static set of keys and tokens, you can make your requests using them to test your code (and mine ;)).

Your Consumer Key / Secret

Use this key and secret for all your requests.

Getting a Request Token

A successful request will return the following:

oauth_token=requestkey&oauth_token_secret=requestsecret

An unsuccessful request will attempt to describe what went wrong.

Example

http://term.ie/oauth/example/request_token.php?oauth_version=1.0&oauth_nonce=a76047d8bea63e799c68c749b460cb7d&oauth_timestamp=1490757369&oauth_consumer_key=key&oauth_signature_method=RSA-SHA1&oauth_signature=sUJbfU7kaS3dLUnVALB8Y3W7kIPp%2FIKfeb%2Fxstuglyf%2BvSozCJsKxpN7bi3APLvWCYqBC9gNmLydnixkmGcGCczYw3Ia1MrjW9JisMn%2FW7SnmGcBKiQ5MjmvoD9cFqjfmqc6gJMb0OwQMgrN%2FlXP9ktar8ktXjl4%2FqtSScFqRQI%3D

Getting an Access Token

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

A successful request will return the following:

oauth_token=accesskey&oauth_token_secret=accesssecret

An unsuccessful request will attempt to describe what went wrong.

Example

http://term.ie/oauth/example/access_token.php?oauth_version=1.0&oauth_nonce=21f2d715a30c68dcfa1a7a8a77798d91&oauth_timestamp=1490757369&oauth_consumer_key=key&oauth_token=requestkey&oauth_signature_method=RSA-SHA1&oauth_signature=Ba08DaVti4OtWlIgO1LW0SlyYHrMKNUKtLM4P9bbe21hC8O%2BQMm1rJNhhyLCQvgiQM59M4lvrZPGCAnnpBvtvCzjOrrtBBmTo3pFbDzCufTmf91dYzAoEMse5XQx%2FMn9od2R9EpQMbNEHZs03EFICar5teH48VE08RCke%2BcEJHo%3D

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

http://term.ie/oauth/example/echo_api.php?oauth_version=1.0&oauth_nonce=03c7fbf8e4a2c5bd021bfbb9c9f7ded8&oauth_timestamp=1490757369&oauth_consumer_key=key&method=foo%2520bar&bar=baz&oauth_token=accesskey&oauth_signature_method=RSA-SHA1&oauth_signature=F7h5hlHoFCxt3BAv%2FatuskeKv09wTkDEBl7TZRiTLdi1o9%2Fv8vEfK5f49JtqmmarFD3YMc9ni7vob%2B7NzhRr9hlwe6j21j2L8uey7%2BQ7il0ifcOEAYIR0g1tVFL1ABe%2BkdIZqQ1BTyhqxd0MgQtB6UgpftYN9TMAiSNjRkNe7sU%3D

Currently Supported Signature Methods

Current signing method is: RSA-SHA1

-----BEGIN PRIVATE KEY-----
MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBALRiMLAh9iimur8V
A7qVvdqxevEuUkW4K+2KdMXmnQbG9Aa7k7eBjK1S+0LYmVjPKlJGNXHDGuy5Fw/d
7rjVJ0BLB+ubPK8iA/Tw3hLQgXMRRGRXXCn8ikfuQfjUS1uZSatdLB81mydBETlJ
hI6GH4twrbDJCR2Bwy/XWXgqgGRzAgMBAAECgYBYWVtleUzavkbrPjy0T5FMou8H
X9u2AC2ry8vD/l7cqedtwMPp9k7TubgNFo+NGvKsl2ynyprOZR1xjQ7WgrgVB+mm
uScOM/5HVceFuGRDhYTCObE+y1kxRloNYXnx3ei1zbeYLPCHdhxRYW7T0qcynNmw
rn05/KO2RLjgQNalsQJBANeA3Q4Nugqy4QBUCEC09SqylT2K9FrrItqL2QKc9v0Z
zO2uwllCbg0dwpVuYPYXYvikNHHg+aCWF+VXsb9rpPsCQQDWR9TT4ORdzoj+Nccn
qkMsDmzt0EfNaAOwHOmVJ2RVBspPcxt5iN4HI7HNeG6U5YsFBb+/GZbgfBT3kpNG
WPTpAkBI+gFhjfJvRw38n3g/+UeAkwMI2TJQS4n8+hid0uus3/zOjDySH3XHCUno
cn1xOJAyZODBo47E+67R4jV1/gzbAkEAklJaspRPXP877NssM5nAZMU0/O/NGCZ+
3jPgDUno6WbJn5cqm8MqWhW1xGkImgRk+fkDBquiq4gPiT898jusgQJAd5Zrr6Q8
AO/0isr/3aa6O6NLQxISLKcPDk2NOccAfS/xOtfOz4sJYM3+Bs4Io9+dZGSDCA54
Lw03eHTNQghS0A==
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIIBpjCCAQ+gAwIBAgIBATANBgkqhkiG9w0BAQUFADAZMRcwFQYDVQQDDA5UZXN0
IFByaW5jaXBhbDAeFw03MDAxMDEwODAwMDBaFw0zODEyMzEwODAwMDBaMBkxFzAV
BgNVBAMMDlRlc3QgUHJpbmNpcGFsMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
gQC0YjCwIfYoprq/FQO6lb3asXrxLlJFuCvtinTF5p0GxvQGu5O3gYytUvtC2JlY
zypSRjVxwxrsuRcP3e641SdASwfrmzyvIgP08N4S0IFzEURkV1wp/IpH7kH41Etb
mUmrXSwfNZsnQRE5SYSOhh+LcK2wyQkdgcMv11l4KoBkcwIDAQABMA0GCSqGSIb3
DQEBBQUAA4GBAGZLPEuJ5SiJ2ryq+CmEGOXfvlTtEL2nuGtr9PewxkgnOjZpUy+d
4TvuXJbNQc8f4AMWL/tO9w0Fk80rWKp9ea8/df4qMq5qlFWlx6yOLQxumNOmECKb
WpkUQDIDJEoFUzKMVuJf4KO/FJ345+BNLGgbJ6WujreoM1X/gYfdnJ/J
-----END CERTIFICATE-----

Further Resources

There is also a test client implementation in here.

The code running this example can be downloaded from the PHP section of the OAuth google code project: http://code.google.com/p/oauth/