Commit Graph

6 Commits

Author SHA1 Message Date
Sandy Carter 1d0187223b [FIX] auth_oauth_signup: Factor out user signup values
There is no easy way to edit the values sent
to newly generated users from oauth_signup.

In some cases,
the mapping from an oauth provider can be different.
* ex: login is something other than email

In other cases,
there are additional fields in res_users added by a module
* ex: firstname and last name in `partner_firstname`

This factorization allows modules inheriting from `auth_oauth_signup`
to alter values sent to the copy of Template User.
This means smaller changes to the default behaviour
and the ability to properly inherit
(multiple times if needed)
this module without losing needed behaviour.

Closes #2355
2015-07-09 16:39:53 +02:00
Denis Ledoux 6c25b2df25 [FIX]auth_oauth: auth_oauth handle oauth error 3, auth_oauth_signup raise accessdenied instead of signuperror, auth_signup use literal_eval instead of safe_eval
bzr revid: dle@openerp.com-20130809145506-agzyvk8m1pr858jf
2013-08-09 16:55:06 +02:00
Olivier Dony 2ffa8c7979 [FIX] auth_oauth_signup: allow non-numeric OAuth User ID, for e.g. compatibility with Google OAuth
lp bug: https://launchpad.net/bugs/1118151 fixed

bzr revid: odo@openerp.com-20130215105820-ua7pwdrf78dkdyk8
2013-02-15 11:58:20 +01:00
Olivier Dony 6a88cc0f7b [FIX] auth_oauth_signup: do not attempt to signup users for failed signings coming back from the oauth provider
See also auth_oauth/controllers/main.py:106

bzr revid: odo@openerp.com-20130212162920-5i0swgn4phqitg53
2013-02-12 17:29:20 +01:00
Raphael Collet ff4e9c7e2c [IMP] auth_oauth_signup: remove useless imports from code
bzr revid: rco@openerp.com-20121126110301-pcwta72vkdfhb6wk
2012-11-26 12:03:01 +01:00
Raphael Collet 1299315111 [ADD] auth_oauth_signup: link module to make auth_oauth work with auth_signup
bzr revid: rco@openerp.com-20121126105242-4a1urt7lwnkvchgm
2012-11-26 11:52:42 +01:00