I want to implement a new REST-based api on our infrastructure, and oauth seems to be the way to go.
For our implementation there will first just be server-to-server access, which will be completely unrestricted. I believe this is called 2-legged authorization.
Later on, we'd like to allow the API to be consumed by the browser, which will turn our authorization into 3-legged.
My question is, is there a good starting point for implementing this? How can we fully authorize a server and down the road add restricted authorization per-user.
The OAUTH spec is not really helpful in these scenario's, but I believe this implies we need to create a never-expiring session for the server-to-server access, and later on add normal sessions with limited access for user-only api's.
I'm hoping to find starting points for more information, let me know!
Updated
Is OAUTH for me? I'm only looking for a authenticated request system, and only the consumer and service provider exist in this scenario. The end-user does not come in to play!