OAuth Protocol
OAuth stands for Open Authentication. It lets an HTTP client and a HTTP server to prove their identity to one another.
There are 7 steps in this protocol(set of rules) as follows:-
- The client makes a request and appends a request_token variable to the HTTP request
- The server takes the request_token and sends it to the client in then HTTP response
- The client takes the request_token receive fron the server and matches it with its own request_token and if both match the client knows that the server is the one who claims it to be
- The client makes another HTTP request with the same request_token
- The server receives the request_token and matches it with the previous request of request_token and if it matches, the server sends another variable caled the access_token to the client.
- The client in the next HTTP request sends this access_token
- In this last step, the server matches access_token sent by the client and the one which it had sent and if it matches, the client is genuine one
Comments
Post a Comment