implementing service something similar with tinyurl or bit.ly, I’m would like to expose service as API, I’m using java and jersey as RESTfull service implementation.
I’m looking for simplest way for authentification of users who use API, OAuth is first thing coming in mind, but the problem is I don’t need this 3 iteration calls with request token query, than access token query with callback url passing. I just need to give user ability to invoke api with no additional security calls to my server.
Thanks to patrickmcgraw comment I used 2-legged oauth authentificaton.
Here is some java code.
For client side (using Jersey api):
On provider side:
Here is code for PHP client: