تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
15245 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
ديسمبر 22
5597
1
فبراير 25
1469
3
يوليو 20
12987
0
مارس 15
3975
2
مارس 15
5605