Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6204 Zobrazení

I am using 7.0. My goal is to implement a IP address based authentication so that some users can login through the Internet and the others can only login from the Intranet.

Overriding res.users.check_credentials can plug additional authentication logic. So the only thing leave is how to access HttpRequest object,which contains Client IP address, within check_credentials method.

Can someone please shed some light on this? Thanks!

Avatar
Zrušit
Nejlepší odpověď

I think this is something that shouldn't be managed by OpenERP but by your network infrastructure. For example, you could consider to configure your server to only accept connections from the office LAN and give VPN access to the people who have the right to access it from outside the company. Not only is it much easier to configure (than coding this in OpenERP) but it can also easily extend to any other application in the LAN.

Avatar
Zrušit
Autor

Thank you Fabrice! This approach is much easier to implement, but customer portal will not work as the service is not public. So I am still finding way to do that. Is it possible to save the IP in context from session?

Related Posts Odpovědi Zobrazení Aktivita
1
zář 23
6208
0
říj 20
3513
8
srp 20
8326
5
úno 19
8142
0
úno 18
2640