summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/models/res_users.py
AgeCommit message (Collapse)Author
2020-08-14[IMP] auth*: adapt auth_* modules for totpOlivier Dony
Prevent non-interactive RPC access when TOTP is enabled, also via external auth services.
2020-08-14[IMP] core: add env to various auth methodsXavier Morel
Allows accessing various keys, especially whether this is an interactive login or not. Also have the xml-rpc `login` delegate to `authenticate` instead of having its own half-assed implementation. And remove some dead code: as far as I can tell, Session.authenticate is never called with a uid.
2018-07-26[ADD] Rate limiting to (failed) login attemptsXavier Morel
Task 31122 section 4. Implement per-IP rate limiting of login attempts after some number of failures. * check_credentials has no reason to be public, make it private * add hooks to check for login cooldown on a source IP (remote_addr: http://werkzeug.pocoo.org/docs/0.14/wrappers/#werkzeug.wrappers.BaseRequest.remote_addr) basis * add baseline/default configuration of 60s cooldown * add baseline threshold of 10 login failures, after checking odoo.com logs it looks like we have short runs of up to 7 failures (assumed to be legitimate) before the user either gets it right or goes and looks it up Depends on #24187
2018-03-20[MERGE] forward port branch 11.0 up to 2835d299792Christophe Simonis
2018-03-19[MERGE] forward port branch saas-15 up to 3d9a2340d99Christophe Simonis
2018-03-19[IMP] http: Sessions implicit deactivationtbe-odoo
- Store a token inside sessions to allow implicit session deactivation when needed.
2017-11-27[MOV] base: move res_* models into models/Thibault Delavallée
2017-07-06[IMP] auth_signup: display meaningfull and translated error messagesDenis Vermylen
Since 5425316eff19e7ae716aafdb730c92d1b3ea2abb errors when signing up will only display two messages: * "Another user is already registered using this email address." or * "Could not create a new account." While Odoo creates a multitude of other comprehensible error messages such as * "Passwords do not match; please retype them." * "Signup token '%s' is no longer valid" This commit now separate UserError and AssertionError from SignupErrors. Those are still hidden in a general message (see 5425316eff19e7ae716aafdb730c92d1b3ea2abb for reasons) while the other ones are fully displayed. This commit also improves translations of messages.
2017-06-15[MERGE] forward port branch saas-16 up to 1b50c829ef3Christophe Simonis
2017-06-15[MERGE] forward port branch saas-15 up to 9713dc2e1f5Christophe Simonis
2017-06-15[FIX] auth_oauth: correctly register token fieldOlivier Dony
2017-05-15[FIX] P3: urllib, urllib2 and urlparseXavier Morel
In Python 3, all of these were "consolidated" under urllib(.request, .parse, .errors) which is inconvenient. Since we already have hard dependencies on requests and werkzeug(.urls, which is a backport of Python 3's unicode-aware urllib.parse) migrate *everything* to that. A sticking point is urllib2.URLError, those were (mostly) replaced by the slightly more general IOError which URLError extends.
2017-04-11[#8530] convert exception handlers to except..as syntaxXavier Morel
Futurize fixers: * lib2to3.fixes.fix_except
2016-08-02[MIG]auth_oauth: Migrate to new api.Kinjal Mehta
2016-08-02[MOVE]auth_oauth: Moved files in related models and views directory.Kinjal Mehta