I’m looking for a protocol to secure a connection between a mobile device and a web service. I want to ensure that only the mobile device can perform actions on the web service and vice versa. Data doesn’t need to be encrypted.
I know Oauth, but it seems that it’s more used to secure connections when you got 3 different entities (Server, Consumer and Auth). Here, the Consumer and the User would be the same person.
Is there a simple protocol to do that (without requiring the user to login and then authorize the access token like it is the case for Oauth)?
I need to use it on different plateforms, so the protocol needs to be available at least on iPhone and PHP.
I found a solution : Use a “2 legged Oauth” protocol.
This way, I stick to the standard, I don’t have to reinvent wheel and I have a secured solution.
As the consumer and the user are the same for me, I simply authorize automatically “request tokens” that the consumer is asking when I see that the consumer is logged as the user!
What I’m doing is :