【发布时间】:2015-03-29 13:04:57
【问题描述】:
我正在开发一个 oAuth 服务(我是这么想的。它可能不完全相同。)向商家开放我们的一个后端 API。
基本上用户可以从商家的电子商务网站购买商品,并可以使用我们的支付网关 付款。
我们有商家和用户的注册系统,我们正在向他们颁发一个 ID(公开可用的字母数字)。
我的计划是 oAuth 服务。
1) First merchant sends above mentioned id to our oAuth server.
2) Then oAuth server sending token, refresh token and expiry time as response.
3) Then merchant sends that token with other required information such as amount again to oAuth server to open our payment gateway web interface.
4) user use that interface to provide his ID and pin to confirm the transactions.
5) Then from over oAuth server we call our back end RESTFull service to do the actual transaction (Merchant account receive money and customer account will debited)
6) After completion of transaction we redirect user again to merchant's website.
*所有通讯都是通过https频道完成的。
我怀疑
1) Whether my approach is correct to secure the above given flow.
2) Do I really need a tokens here or only ID is enough? If I only used ID what I'm going to missing here.
3) Is there any possibility that some one can cheat the process.
期待您对此的建议。
【问题讨论】:
标签: java web-services security oauth-2.0