Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1036 Vizualizări

I've discovered that Odoo allows us to authenticate via an HTTP request to the following endpoint:

http://your_odoo_instance.com/web/session/authenticate. However, you need to include specific parameters in the body of the request.


Sample body parameters:


{ "jsonrpc": "2.0", "params": { "db": "odoo_db", "login": "email", "password": "password" } }

For security reasons, I want to replace the password with my API key. I attempted to use the API key in place of the password, like so:


{ "jsonrpc": "2.0", "params": { "db": "odoo_db", "login": "email", "password": "api_key" } }

However, this approach doesn't seem to work.

My question is: Is there a way to authenticate using the API key instead of the password?

I've noticed that most API key usage is tied to CRUD operations, but I want to explore using the API key with Odoo controllers as well.

Any assistance or guidance would be greatly appreciated!

Thank you in advance to anyone who can help!

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
ian. 24
2500
4
aug. 24
38636
1
mai 24
1426
5
dec. 20
10314
0
iul. 21
3181