Odoo provides one more type of RPC API: JSON-RPC. As its name suggests, the JSON-RPC works in the JSON format and uses the jsonrpc 2.0 specification. In this recipe, we will see how you can log in with JSON-RPC. The Odoo web client itself uses JSON-RPC to fetch data from the server.
Logging in/connecting Odoo with JSON-RPC
Getting ready
In this recipe, we will perform user authentication through JSON-RPC to check whether the given credentials are valid. Make sure you have installed the my_library module and the server is running on http://localhost:8069.