Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I would like to authenticate a user from a PHP page and redirect him into OpenERP without having to let him enter is username and password. I saw a lot of articles about APIs and login, but it is only to do some action as search, write and read data. Do you have any solutions for that?
Hi Mr. Bernier,
Did you ever find any possible solutions for this case ? Did you proceed with using the instance0|session_id cookie for this case ?
We would really like to learn about this and consider the possible solutions along with their pros and cnks ons.
Thanks for this question and for sharing this case :D
It sounds a bit weird to me; "only some search, write and read" actions is all you do in OpenERP anyways. Doing anything in OpenERP requires a user. Having a user do anything on OpenERP requires login credentials.
If you have these credentials anywhere, then you can easily setup a connection to the API and use OpenERP from that point on. As long as the connection is active, you should be able to do just about anything from PHP.
Hello Ludo, I think I misspoke.
I have another web platform that all my users are logged in. I want to add a link that automatically authenticate the user in Odoo. When the user clic on this link, I want to open another tab in Web browser with Odoo already logged in.
I saw that Single Sign On service should do this, but it is possible to do this with APIs?
I saw that I need to get the following cookie to do this : instance0|session_id
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/19/14, 6:15 PM|
|Seen: 1602 times|
|Last updated: 1/10/18, 4:43 AM|