Sébastien Alix
f17ce549b6
[8.0] Fix Travis ( #616 )
* [FIX] auth_from_http_remote_user - Lint
* [FIX] server_environment - Lint
* [FIX] base_module_doc_rst - Lint
* [FIX] fetchmail_notify_error_to_sender - Fix XML view, it was the 'active' field from 'fetchmail_attach_from_folder' module which was targeted by mistake (belonging to another data model)
8 years ago
Stéphane Bidoul
c2fec40d13
auth_http_remote_user: test if already authenticated based on login instead of uid
Avoids a database query unless authentication is actually required.
10 years ago
Stéphane Bidoul
5e79ce29dc
auth_from_http_remote_user: remove unneeded browse
10 years ago
Stéphane Bidoul
68e96cd782
auth_http_remote_user: slight reorganization and some comments (logic remains identical)
10 years ago
Laurent Mignon (aka lmi)
436ffcd53f
If HTTP_REMOTE_USER is in the request headers and no corresponding user is found in odoo always issues Unauthorized (avoid redirect to the login page)
If the uid in the session is not the same as the one from the binded HTTP_REMOTE_USER, always logout to clean up the session
10 years ago
Laurent Mignon (aka lmi)
8c7115e2d3
[FIX] return 'None' if no user name is found in the request hearder
10 years ago
Laurent Mignon (aka lmi)
97f491724f
[PEP8]
10 years ago
Laurent Mignon (aka lmi)
d68a47f05f
[FIX] always check the uid in the session and the one in the request to avoid session mismatch...
10 years ago
Laurent Mignon (aka lmi)
a70e13365d
[FIX] properlyt return the Unauthorized() response to avoid warning in the log file
10 years ago
Laurent Mignon (aka lmi)
1675ae6fbf
Code simplification: remove overkill method
10 years ago
Laurent Mignon (aka lmi)
8f9fcae4dc
Addons configuration parameter is now a field part of the Authentication group from base_setup[C
10 years ago
Laurent Mignon
9b99c2dc57
[FIX] if the default login page is disabled, redirect with *401*
10 years ago
Laurent Mignon
2f51036928
[PEP8] line lenght is now ridiculous (80 chars)
10 years ago
Laurent Mignon
c893a706b8
port auth_from_http_remote_user to 8.0
10 years ago
Laurent Mignon
7dd5bc685e
[ADD] This module initialize the session by looking for the field HTTP_REMOTE_USER in the HEADER of the HTTP request and trying^Co bind the given value to a user
10 years ago