summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2019-07-08 15:47:32 +0000
committerDamien Bouvy <dbo@odoo.com>2019-07-16 05:25:09 +0000
commitf7b6d3b0b81c447e3ec4dab244594717b703686d (patch)
treec6a0e008000dd2fbc8e276627c14c303292d8cf7 /addons/web/static/src/js/views/basic
parent565cb99ec02e6ec5e8480831128a57c6e0c176c2 (diff)
[FIX] payment_authorize: md5 to sha512 compat
This commit extends the changes introduced by 88de93114 to adapt Odoo payment flows to the switch in transaction signature done by Authorize.net. The initial fix was not sufficient for flows that mixed redirection payment flows and server-to-server flows (e.g. paying a quote with a card that gets saved then using the token to pay for a subscription). The problem comes from the fact that the server-to-server API uses the API Transaction Key and API Login ID as credentials to authenticate requests; there is no need for a signature since this data is never publicly exposed on the website and a MITM is mitigated by the fact that it would need to be done between the Odoo server and the Authorize.net servers (both of which use https in a normal deployment) which is admitedly more complex than doing a MITM on a Starbucks wifi. On the other hand, the 'redirection' flow will include all transaction parameters as inputs in an html form, therefore the signature is required to ensure that the values have not been modified by a website user or a mitm. Since both flows can coexist on the same configuration, we cannot use the same field depending on the payment flow configuration - we need both fields to be stored for the provider. This commit therefore has to introduce new fields on payment.acquirer record that can store the signature key for authorize in addition to the usual authorize fields. Instead of adding a new module, this commit uses non-stored computed fields that will generate System Parameters entries for any acquirer of the 'authorize' kind when set through the interface. closes odoo/odoo#34670 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions