Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
15217 Lượt xem

Odoo 9 have CSRF token authentication.

So I try with following json-rpc POST request.


http://odoo.server.com/web/login

csrf_token=0a006defe20c633957b2516dc356854212f211dco1486656588&login=username&password=password&redirect=


It working in browser. But I call the same request via mobile it return 400 error.


Any one guide me how to Authenticate via JSON-RPC

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

IMHO, I think you can call the controller /web/session/authenticate using a JSON call, this will authenticate the given params ...

Hope this could helps 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 22
5581
1
thg 2 25
1457
3
thg 7 20
12969
0
thg 3 15
3952
2
thg 3 15
5599