I want to hit login api from postman or java and the error generating bad csrf token.
Have any solution to fix this issue or we disabled csrf token?
I want to hit login api from postman or java and the error generating bad csrf token.
Have any solution to fix this issue or we disabled csrf token?
Read the documentation on external API's, use this snippet to test out connection to your Odoo instance:
final XmlRpcClient client = new XmlRpcClient();
final XmlRpcClientConfigImpl start_config = new XmlRpcClientConfigImpl();
start_config.setServerURL(new URL("https://demo.odoo.com/start"));
final Map<String, String> info = (Map<String, String>)client.execute(
start_config, "start", emptyList());
final String url = info.get("host"),
db = info.get("database"),
username = info.get("user"),
password = info.get("password");
Normally you must create an application to connect using rpc request. However, if you want to test it in dev environment, you can disable the csrf token in route. According to this website http://vauxoo.github.io/odoo/reference/http.html, there is csrf parameter that can be set to false in the route.
Try jsonrpc web authentication api "/web/session/authenticate" with type json. I am working on odoo framework mobile api connection. Its working.