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.

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://oauthbin.com/v1/request-token?oauth_consumer_key=key&oauth_nonce=ff11f75e0b11f48c9ca9bfea0f2ccdc6&oauth_signature=emzflCTt1tHs8AoFu52RZZ9C2aKFsTQqbgj5%2FzA3U%2F5ZEsHxtRc42UkDGUj%2FZk33clzZMWzBfsWeYfjbuca7pRvg4mIffx4NI4vuC6TYWulm5yuh8fav%2BoZz%2FSv7op6O1e89NVVDuNVnmtdtRMwHXSu4v2lxP1feINHJB2n4YgQ%3D&oauth_signature_method=RSA-SHA1&oauth_timestamp=1534423705&oauth_version=1.0

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://oauthbin.com/v1/access-token?oauth_consumer_key=key&oauth_nonce=e9cc4922b6a36eeb19f63a9e28b3b96b&oauth_signature=B7%2BC9eRcSzUWRNMRmK810Y6Tf1hd9xiHULK%2BF9AXGB4KWwQwTOZAWXvRjqit2XbbqCbkTJe79GFrpuR7DbfLGwH4daMhiIaW4bQlXUMZqbge4ChA2T4WxGVTXQ90pInlFx%2BBu84vb0o4L%2BL6lj7geYWrlE4qbvWlnDXa64oFPac%3D&oauth_signature_method=RSA-SHA1&oauth_timestamp=1534423705&oauth_token=requestkey&oauth_version=1.0

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://oauthbin.com/v1/echo?bar=baz&method=foo%2520bar&oauth_consumer_key=key&oauth_nonce=9eb332c328825cd489038697327378fe&oauth_signature=F8vadIApaZZMsMH4OdCAnAdUBgYoMvzY6FEmw9yfQFNqqxCIzA18G%2FlugsK%2BqFogyTRgaf3NrC9muFWYXRnua4WoKNKghAofSznYWzFNZiiKByUUajpJo4b19lLI1Mrac9ON1mL3dq4RUlnSOTAyg2tT9mx5dZL8C9W9ckk8ogg%3D&oauth_signature_method=RSA-SHA1&oauth_timestamp=1534423705&oauth_token=accesskey&oauth_version=1.0

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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