python - RESTful API using OAuth where authentication tokens are sent as part of the HTTP request -
I am new enough to develop APIs. This is part of my class project and aims to create a restalty API in the target python, Where delegation is done by OAuth and these tokens should be sent as part of the HTTP request.
I was advised that I should make an API that involves applying the OAYUTH model to a proxy-like approach, where authentication tokens are sent as part of the HTTP request. What does the proxy-like approach mean? Any ideas?
I really appreciate it if someone can help me with this and how to make an API (even though this dragon is not unique, I can quote from it). >
If you are new to REST services, a good kick will start for you.
So what is oh?
OAuth may contain many things: It is usually used by an application (consumer) to access the data or services that the user (the resource owner) has with any other service provider , And it is done in a manner that prevents users from logging in. Credentials with the user's provider
For example, consider a website or application that asks for permission to access your Facebook account and post it on your timeline. In this example, you are the resource holder (you have your Facebook timeline ), Third party application is consumer and Facebook provider. Even if you write access and consumer applications on your timeline, it never sees your Facebook login information.
This usage of OAuth does not apply to the Client / Server Resipe API; It can understand something similar if your restitutional API can be accessed by third-party applications (users).
In case of a direct client / server communication, login credentials, there is no need to hide the customer (curl in the above examples) the user receives the credentials and uses them to authenticate the request directly to the server Does.
Comments
Post a Comment