I have been exploring OAuth version 1.0 for the REST API I am currently working on.
I have 3 authentication scenarios
- this involves 3 parties, the service provider, the consumer and the user. The 3-legged Oauth matches this scenario.
- 2 parties are involved, the consumer and the service provider. Is this a scenario where 2-legged Oauth is most applicable and if so what is the process as there is hardly a difference between this and HTTP basic authentication based on my understanding.
- I also am creating a special type of user that can always access the currently logged in user's data without the user's authorization. How can this fit into the picture while still implementing OAuth.
Using this scenarios? how can I implement Oauth neatly and how can this help me understand the 3-legged and 2-legged Oauth processes?