Authenticating REST APIs with Eve

Eve is a REST API server built in Python. We will test how to use Eve REST API framework with BasicAuth, global authentication. Eve can also be started without any authentication at all, as a simple REST API server. This recipe is a simple demonstration of serving the entire web server. However, Eve provides more sophisticated and more role-based access control that protects certain APIs with roles for the users.

The server is started with a username and password, and the client passes on the base64 encode of the format username:password to the server to get authenticated.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.124.177