This question has been flagged
2 Replies
4038 Views

Hello,
I'm developing API,for connection with IOS apps,
how to login in odoo explicitly and how to get session_id and csrf token .
using odoo14 EE .
Thanks

Avatar
Discard
Best Answer

The correct way to authenticate programmatically is using XML-RPC protocol. See here:

https://www.odoo.com/documentation/14.0/webservices/odoo.html

Avatar
Discard
Best Answer

Hi,

You can use /web/session/authenticate method in odoo.

See: Odoo Mobile App Development - Authentication

Thanks

Avatar
Discard
Author

Thanks for answer,

but to generate csrf token .

there is any method?